From Macros Wiki
Revision as of 19:15, 14 January 2011 by Mikeo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



PERMANENT <var name>, <var name> (max 50 variables)

Once a macro has completed execution, all of the variables used by that macro are normally removed from memory. However, any variables defined using the PERMANENT command will remain active and their values can be obtained by any macro that is subsequently used in the same session of GibbsCAM.


<var name>
The name of the variable to be defined.
For a string variable, the name must end with a dollar sign "$".
For an array variable, you must specify the number of elements in the array.
For example MyNumericArray(10) or MyStringArray$(15).
When using arrays, the first element is always 1.

A maximum of 50 variable names may be defined by one PERMANENT command, each separated by a comma.


PERMANENT ToolList(20), OpList(100), Notes$(5), Counter, ToolNum