[Gambas-user] R: Array with multiple types of vars

Demosthenes Koptsis demosthenesk at ...626...
Wed Jun 13 13:39:28 CEST 2012


Στις 12/6/2012 13:18, ο/η Ru Vuott έγραψε:
>
>> i want to create an array like
>> [Integer, Integer, String, Boolean, String]
>>
>> How can i do that?
>>
>> -------------------------------------------------------------------------
> You could use a Structure type array variable:
>
>
> Public Struct miaStruttura
>   a As Integer
>   b As Integer
>   c As String
>   d As Boolean
>   e As String
> End Struct
>
> public myArr As New miaStruttura[]
>
> etc. etc.
>
>
> You could use a special class type array variable:
>
>   We create a new  mySpecial.class, where we have:
>
>
> Public a As Integer
> Public b As Integer
> Public c As String
> Public d As Boolean
> Public e As String
>
> '''
>
>   in FMain class we have declaration ad use of variable:
>
>   Private specialeVar As New MySpecial[]
>
> Public Sub etc etc
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Ok, thanks to all of you. Now i can have a starting point.




More information about the User mailing list