[Gambas-user] Strange error with arrays
Eilert
eilert-sprachen at ...221...
Wed Feb 23 08:55:38 CET 2005
Hi Rob,
sounds interesting,
> Actually, I do that by creating an array of Object and assigning
> a new Array object of the desired type to each of the Object
> array's elements, so that I can refer to them like this:
>
> myArray[x][y]
>
> It requires a little more code to initialize them (a for loop)
> but seems to work fine. I guess this is a technique I brought
> over from perl, which doesn't have multi-dimensional arrays as
> such.
but could you post an example? I can't figure out where you make the
connection between the array of objects and the object array. Tried this:
DIM myArrObj AS Object[]
myArrObj = NEW Object[]
or can I just use
DIM myArrObj AS NEW Object[]
But what now?
Rolf
More information about the User
mailing list