Link to home
Start Free TrialLog in
Avatar of spandex44
spandex44

asked on

creating a 2d array

Hi,
Easy question.  How do you create a dynamic 2D array?  And then how do you redim this array (what is the syntax)?
Avatar of PaulHews
PaulHews
Flag of Canada image

'Create dynamic array
dim intNum() as Integer

'Now use redim to make 2 dimensional
Redim intNum(1 to 3, 1 to 10)
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spandex44
spandex44

ASKER

SO how would you go about redimming the first dimension?
You can redim the whole thing if you don't need to preserve the contents.