Quote: "I am sure that when recreating 2 dimensional array it keeps values because... it is a bug?"
Yeah, I think it feels very unsafe too. Also, it will delete strings in UDTs if you re-create a 2D array, so...
Here's another idea for multi-dimensional arrays:
1) make a temporary array
2) copy old array into temporary array
3) delete old array
4) make new array again, but larger
5) copy temporary array back into new array
6) delete temporary array
I know it sucks.
Sometimes you don't always need multi-dimensional arrays, can't you compress it?
This here:
type crap
value as integer
endtype
size_x=10
size_y=10
size_z=20
dim my_array(size_x, size_y, size_z) as crap
x=5
y=4
z=7
value = my_array(x, y, z).value
Is the same as this:
type crap
value as integer
endtype
size_x=10
size_y=10
size_z=20
dim my_array(size_x*size_y*size_z) as crap
x=5
y=4
z=7
value = my_array(z + (y*size_z) + (x*size_y*size_z) ).value
TheComet