PERMANENT: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Command|syntax= | {{Command|syntax=PERMANENT <nowiki><var name>, <var name>, <var name> (max 50 variables)</nowiki> | ||
|description=: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. | |description=: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. | ||
| Line 5: | Line 5: | ||
|param2=<nowiki><var name></nowiki>|param2_desc={{var name}} | |param2=<nowiki><var name></nowiki>|param2_desc={{var name}} | ||
|param3=<nowiki><var name></nowiki>|param3_desc={{var name}} | |param3=<nowiki><var name></nowiki>|param3_desc={{var name}} | ||
| | |||
|A maximum of 50 variables may be defined, each separated by a comma. | |||
}} | }} | ||
===Example=== | ===Example=== | ||
:PERMANENT y, aa, | :PERMANENT y, aa, abc$ | ||
[[Category:Variable_Definitions]] | [[Category:Variable_Definitions]] | ||
Revision as of 16:54, 29 July 2010
Command
- PERMANENT <var name>, <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.
Parameters
- <var name>
- Set the value of a number variable
- <var name>
- Set the value of a number variable
- <var name>
- Set the value of a number variable
Example
- PERMANENT y, aa, abc$