Question about ReDim
Posted: Wed Mar 29, 2006 8:48 pm
The following is from the HELP file:
If I have a multidimensional array like:
I get these fields/items/elements (whatever):
So when it's redimmed to:
I get these fields/items/elements (whatever):
or what?
- If ReDim is used with a multi-dimension array, only its last dimension can be changed.
If I have a multidimensional array like:
Code: Select all
Dim MYarray.l(2,2)
Code: Select all
MYarray Index 0 = Position 1, Position 2
MYarray Index 1 = Position 1, Position 2
MYarray Indexl 2 = Position 1, Position 2
Code: Select all
ReDim MYarray(4,4)
Code: Select all
MYarray Index 0 = Position 1, Position 2
MYarray Index 1 = Position 1, Position 2
MYarray Index 2 = Position 1, Position 2
MYarray Index 3 = NoPosition, Position 2
MYarray Index 4 = NoPosition, Position 2