ReDim Preserve Problem!
Posted on 2002-03-05
In declaring an array like this:
Dim TempArray() As String
TempArray(10) As String
Then, I want to make the array larger without removing the current content.
ReDim Preserve TempArray(15)
Could anyone teach me how will the memory be allocated?
I think a new memory area will be allocated to save this array. Am I Right?
If yes, how about the memory allocated when I declared the size of the array is 10 before.
Will this memory deallocate immediately after resize the array by "ReDim Preserve...."