Erase
Keyword Erase
Resets all elements in an array, with any number of dimensions (up to 5) to 0.0 or the empty string "", depending on the type of the array.
Syntax Erase( array variable )
Where array variable is the symbol for an array of either string or number.
Remarks
Resets arrays to 0 or the empty string ("").
See Also:
Data Types Variable Declarations
Example Script
STRING str_a(50)' Creates a single dimensional array.
NUMBER i
FOR i = 0 TO 50 str_a(i) = "String Array Element: " + i
NEXT
ERASE(str_a)
FOR i = 0 TO 50
IF str_a(i) != "" THEN
PRINT str_a(i)
ENDIF
NEXT
PRINT "DONE"
Script Output
DONE