Erase Statement

Erases the elements of arrays.

Syntax

Erase arrayName

Arguments:

The arrayName argument is the name of the array variable to be erased.

Remarks

Erase statement clears the values of an array.

The following example illustrates the use of the Erase statement.

Example 1:


Dim NumArray 
NumArray = Array(1,2,3)
Erase NumArray   ' Each element value is erased.