Append multidimensional array

Is it possible to use append in multidimensional arrays?
I mean I have an array like this:
array(2,-1)
then I need to append data to the end of the array without redimensioning it.
Xojo documentations says Append is for one dimentional array.
How do I increase array by one then add data to the end of it?
Thanks a lot

You could create a method that does what you want.

[quote=295658:@Alexandre Amato]then I need to append data to the end of the array without redimensioning it.
[/quote]

Keep in mind that, by definition, Append will redimension even a one-dimensional array.

If you create a class that consists of a one dimensional array, you could then make an array of that class, giving you a two dimensional array. Then, when you append an element to the overall array you would get an entire new row.

You could do something similar by using an array of Variant (or Auto) where each element holds another array. Using objects is cleaner and easier to deal with though.

Thanks. Good ideas.