Used to release array variables and de-allocate the memory used for their elements.
Syntax
Erase arraylist
The Erase statement syntax has these parts:
Part |
Description |
|---|---|
Arraylist |
Required. List of array variables to be erased. Multiple variables are separated by commas. |
The Erase statement is equivalent to assigning Nothing to each array variable.
This example uses the Erase statement to clear an array and free the memory.
Dim AnArray[100] AS Number
' ...
Erase AnArray