WWW.NNC.IR
Macro Reference
512
Vision System FH/FZ5 Series
User’s Manual (Z340)
Erase
Releases array variable.
Format
Erase <array>[, <array>...]
Parameter
Return value
None.
Description
Releases the allocated memory area of the predefined array variable with the Dim function that is specified in
the <array> parameter. By releasing the temporarily used array variables with this function, the allocated
memory areas of the variables can be released so that the released memory areas can be efficiently utilized.
If an array variable is redefined without being released, its allocated memory area is released before the
redefinition.
If variables other than array variables are specified in the <array> parameter, "Syntax error" will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Example
Releases defined array.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Dim (Reference: X Details (p.461))
Parameter
name
Data type Description
<array> --- Released array variable
Dim XY&(3)
Dim XY#(7, 15)
Dim CHARA$(31, 63, 127, 255)
Rem Releases array variable.
Erase XY&, XY#(), CHARA$()