[Gambas-user] Array with multiple types of vars

Bruce bbruen at ...2308...
Tue Jun 12 09:41:37 CEST 2012


On Tue, 2012-06-12 at 09:38 +0300, Demosthenes Koptsis wrote:
> Hi,
> 
> in server socket example i see that we use the Tag property as an array
> 
> i changed it a while....
>    Obj.Tag = [$iId, 0, "", False, sHost] 'Client id, Data id, Data, 
> Valid Client, Remote Ip
> 
> My question is, can i make such arrays [$iId, 0, "", False, sHost] at 
> Global scope Private/Public arrays?
> 
> i want to create an array like
> [Integer, Integer, String, Boolean, String]
> 
> How can i do that?

You mean like:

Private $MyArray as Variant[]

???

or do you want to "enforce" some strong typing on the individual
entries?  I don't think you can do that.

Bruce







More information about the User mailing list