GLOBAL: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|param1=<nowiki><var name></nowiki>|param1_desc={{define var name}} | |param1=<nowiki><var name></nowiki>|param1_desc={{define var name}} | ||
| | |param2=<nowiki><var name></nowiki>|param2_desc={{define var name}} | ||
A maximum of 50 variable names may be defined, each separetd by a comma. | A maximum of 50 variable names may be defined, each separetd by a comma. | ||
Line 11: | Line 11: | ||
:GLOBAL iref1 | :GLOBAL iref1 | ||
:GLOBAL ToolList(20), OpList(100), Notes$(5), Counter, ToolNum | :GLOBAL ToolList(20), OpList(100), Notes$(5), Counter, ToolNum | ||
<br> | |||
:For an example macro see [[Modify_Op_Path]] [[Explode_Shape]] [[Calc_Geo_Extents]] [[Get_Commands]] [[Get_MTM_Data]] [[Global_Local]] | :For an example macro see [[Modify_Op_Path]] [[Explode_Shape]] [[Calc_Geo_Extents]] [[Get_Commands]] [[Get_MTM_Data]] [[Global_Local]] | ||
[[Category:Variable_Definitions]] | [[Category:Variable_Definitions]] |
Revision as of 21:40, 29 July 2010
Command
- GLOBAL <var name>, <var name>, <var name> (max 50 variables)
Define variables that can be used in any macro.
Parameters
- <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.
- <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, each separetd by a comma.
Example
- GLOBAL iref1
- GLOBAL ToolList(20), OpList(100), Notes$(5), Counter, ToolNum
- For an example macro see Modify_Op_Path Explode_Shape Calc_Geo_Extents Get_Commands Get_MTM_Data Global_Local