
De-allocating the whole array with ReDim() ????
Quote:
>Suppose I have a procedure with,
>Dim X() As Integer 'QUESTION 1 : No memory is allocated just yet, right ?????
Wrong. VB has created an internal "handle" for the array.
Quote:
> .
> .
>ReDim X(5) As Integer 'Allocates for 6 elements
Unless you used an Option Base statement.
Quote:
>ReDim X(?????) As Integer ' QUESTION 2 : How do I free up all the memory ?????
Erase X
Simple :)
-Andy Cook.