[Gambas-user] R: Array with multiple types of vars
Ru Vuott
vuott at ...325...
Tue Jun 12 12:18:00 CEST 2012
>
> 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
More information about the User
mailing list