Difference between revisions of "Variables declaration"
From ArcoWiki
m (6 revisions imported) |
m (The LinkTitles extension automatically added links to existing pages (<a rel="nofollow" class="external free" href="https://github.com/bovender/LinkTitles">https://github.com/bovender/LinkTitles</a>).) |
||
Line 2: | Line 2: | ||
With that command it is specified the [[variable]] type and its name. | With that command it is specified the [[variable]] type and its name. | ||
− | The variables can be:<br/> | + | The [[variables]] can be:<br/> |
::<code>COMMON<br/></code> | ::<code>COMMON<br/></code> | ||
::<code>GLOBAL<br/></code> | ::<code>GLOBAL<br/></code> |
Revision as of 14:20, 23 March 2018
In order to perform a Variable Declaration it is necessary to use the DECL/
command.
With that command it is specified the variable type and its name.
The variables can be:
COMMON
GLOBAL
LOCAL
and can be declared in the following types:
BOOL
CHAR
INTGR
REAL
VECTOR
LONG
$$ Declaration of different variable types
DECL/CHAR,80,TCDIRS
DECL/INTGR,TCNSLT
$$ It is possible to declare different variables of the same type in the same row
DECL/DOUBLE,TCDIFX,TCDIFY,TCDIFZ
$$ Declaration of an array of 10 char, called result. Each char has 80 characters.
DECL/CHAR,80,RESULTS[10]
$$ Declaration of an array of 10 x 5 char
DECL/CHAR,80,RESULTS[10,5]