There are two kinds of arrays in Gambas:

"Java-like" arrays

They are objects of the following classes:

Integer[], String[], Object[], Date[], Variant[].
They have only one dimension.

You declare them this way: they are always void at startup.

DIM MyArray AS NEW Integer[]
They are dynamic, and have a lot of useful methods applying to them.

"Native" arrays

You declare them this way:

DIM MyArray[Dim1, Dim2, ... ] AS Integer/String/...

You can have up to eight dimensions.

They are NOT objects. They are allocated on the stack if you declare them local to a function, or inside the object data if you declare them global.

They are NOT dynamic. They can't grow or shrink once declared. You can only only put an get data into them.

(answered by Benoit in the Gambas-user mailing list)

-- NelsonFerraz - 30 Aug 2003