Difference between revisions of "Variables declaration"
From ArcoWiki
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | In order to perform a '''Variable Declaration''' it is necessary to use the <code>DECL/</code> command.<br /> | + | In order to perform a '''[[Variable]] Declaration''' it is necessary to use the <code>DECL/</code> command.<br /> |
| − | 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> | ||
| Line 31: | Line 31: | ||
<code><span style="color: green; text-decoration: none;">$$ Declaration of an array of 10 x 5 char</span><br /></code> | <code><span style="color: green; text-decoration: none;">$$ Declaration of an array of 10 x 5 char</span><br /></code> | ||
::<code>DECL/CHAR,80,RESULTS[10,5]<br/></code> | ::<code>DECL/CHAR,80,RESULTS[10,5]<br/></code> | ||
| + | |||
| + | [[it:Dichiarazione delle variabili]] | ||
| + | [[zh-cn:变量声明]] | ||
| + | [[pt:Declaração de variáveis]] | ||
| + | [[de:Deklaration von Variablen]] | ||
| + | [[es:Declaración de variables]] | ||
| + | [[en:Variables declaration]] | ||
| + | |||
| + | [[Category:Dmis_Tutorial]] | ||
Latest revision as of 10:01, 29 June 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:
COMMONGLOBALLOCAL
and can be declared in the following types:
BOOLCHARINTGRREALVECTORLONG
$$ Declaration of different variable types
DECL/CHAR,80,TCDIRSDECL/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]