Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReDim Preserve & Multi-dimentional Arrays 1

Status
Not open for further replies.

MacroManII

Programmer
Nov 14, 2002
22
US
Hi,

I have a multidementional array that I want to Re-Dimension and preserve the data. I have tried ..

Redim Preserve Myarray( 100, 20)

But this does not work ..

Help

MacroManII
 
You can only (using redim) redimension the last dimension of a multidimensional array. Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Also the initial dim must have no elements then be redimmed to the first values

Dim MyArray()
ReDim MyArray(10, 20, 100)


ReDim Preserve MyArray(10, 20, 200)


cjw


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top