A dynamic array is one whose size can be changed at run-time.
Dim myArray() as String
sets up a dynmamic array. When you know how big it needs to be you can set it's size:
ReDim myArray(10) as String
If you later want to increase it's size, but retain it's values, use:
ReDim Preserve myArray(15) as String
See also ReDim in VBHelp
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.