Dynamically Redim Array Using Variables
Category:
Lists, Collections and ArraysType:
SnippetsDifficulty:
AdvancedAuthor:
Arkadiy OlovyannikovVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
VB ReDim statement allow you to use variables to set array bounds. But it doesn't allow to use variables as dimension numbers. In some cases (especially when working with tables) this can be useful.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: