[Gambas-user] Create an array inside a class

Grahame White grahame at ...457...
Sun May 23 21:02:06 CEST 2004


> >
> > I then declare a public version :
> >
> > global.class
> >
> > 	static public mylist as list
                                         ^
Whoops should have had a NEW here too.

> You must instanciate your array first. This way, for example,
>
> list.class
>
>  	public name as string
>  	public row as NEW short[]

D'oh! I had a feeling it'd be something silly thanks :)

>
>
> Regards,




More information about the User mailing list