
08-26-2002, 02:19 PM
|
 |
Mexican Coder
|
|
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
|
|
use ReDim
You need to Dim there:
Dim YourArray() as Long
Then whe you need change the array size do this:
ReDim YourArray(NewSize)
if you don't need erase the content of the array use Preserve:
Redim Preserve YourArray(NewSize)
Preserve only use to change the first dim of the array, this mean, you can't Redim Preserve this:
Redim Preserve (12,NewValue) as long
but you can Redim Preserve this:
Redim Preserve (NewSize,12) as Long
I hope help !!
|
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
|