[Gambas-user] struct

Fabien Bodard abidoo.too at ...11...
Tue Apr 6 12:46:25 CEST 2004


Le lundi 5 Avril 2004 08:50, Frank Berg a écrit :
> hi list..
>
> i need something linke a VB struct or  VB type
>
> snip _____________________________
>
> struct adr
>   name as string * 10
>   street as string * 25
>   telefon as string * 20
> end struct
>
> dim myAdr[] as adr
>
> snap _____________________________
>
> how can i do this..
>
> tnx.. frank


with a class


Create a class who have this feature.

after do a 
dim mymem(10) as myclass ' for a static array

or

dim mymem as object[]

mymem.add(new myclass)

Fabien




More information about the User mailing list