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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array resizing

Status
Not open for further replies.

Luis939

MIS
Feb 28, 2003
453
US
I have this 2-dimensional array that i declare

dim myarray(1 to 10, 1 to 10)

however, it doesnt seem possible to "Redim" this array, apparently you can only do that for 1 dimensional arrays...
But does anyone out there know how this could be achieved?
Thanks!!!
 
You can ReDim only dynamic array:
Dim MyArray()
...
ReDim MyArray(1 to 10, 1 to 10)
Only last dimension size can be resized with Preserve keyword:
ReDim Preserve MyArray(1 to 10, 1 to 15)

combo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top