Template:Define var name: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
MikeO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
Line 1: Line 1:
The name of the variable to be defined.<br>
The name of the variable to be defined.<br>
:For a string variable, the name must end with a dollar sign "$".<br>
:For a string variable, the name must end with a dollar sign "$".<br>
:For an array variable, you must specify the number of elements in the array.<br>
:For an array variable, you must specify the number of elements in the array.<br>
:For example MyNumericArray(10) or MyStringArray$(15).<br>
:For example MyNumericArray(10) or MyStringArray$(15).<br>
:When using arrays, the first element is always 1.
:When using arrays, the first element is always 1.

Latest revision as of 00:47, 4 January 2011

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.