<< Click to Display Table of Contents >> Erase (statement) |
Erase ArrayName [, ...]
Re-initializes the elements of an array.
See also: Dim
Example:
Option Base 1
Sub Main
Dim a(10) As Double
Dim i As Integer
For i = 1 to 3
a(i) = 2 + i
Next i
Erase a
Print a(1), a(2), a(3) ' Returns 0 0 0
End Sub