Difference between revisions of "Assign"
From ArcoWiki
(Created page with " To '''Assign''' a value to a variable, in [DMIS] is not enough to use the character “=”, it is necessary to use the <code>ASSIGN/</code> command followed by the varia...") |
|||
| (7 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | To '''Assign''' a value to a [[variable]], in [[DMIS]] is not enough to use the character “=”, it is necessary to use the <code>ASSIGN/</code> command followed by the [[variable]] value.<br/> | ||
| + | The [[variable]] must be defined first. | ||
| − | + | <code><span style="color: green; text-decoration: none;">$$ Assign text value to a string</span><br/></code> | |
| − | |||
| − | |||
| − | <code><span style="color: green; text-decoration: none;">$$ Assign text value to a string</span><br /></code> | ||
::<code>TCDIRS=ASSIGN/'C:\Program Files\MyFolder\Data\'<br/></code> | ::<code>TCDIRS=ASSIGN/'C:\Program Files\MyFolder\Data\'<br/></code> | ||
| − | <code><span style="color: green; text-decoration: none;">$$ Assign numerical value to an integer</span><br /></code> | + | <code><span style="color: green; text-decoration: none;">$$ Assign numerical value to an integer</span><br/></code> |
::<code>TCNSLT=ASSIGN/6<br/></code> | ::<code>TCNSLT=ASSIGN/6<br/></code> | ||
| + | [[it:Assegnare]] | ||
| + | [[zh-cn:分配]] | ||
| + | [[pt:Atribuir]] | ||
| + | [[de:Zuordnen]] | ||
| + | [[es:Asignar]] | ||
| + | [[en:Assign]] | ||
| + | |||
| + | [[Category:Dmis_Tutorial]] | ||
Latest revision as of 08:39, 1 June 2018
To Assign a value to a variable, in DMIS is not enough to use the character “=”, it is necessary to use the ASSIGN/ command followed by the variable value.
The variable must be defined first.
$$ Assign text value to a string
TCDIRS=ASSIGN/'C:\Program Files\MyFolder\Data\'
$$ Assign numerical value to an integer
TCNSLT=ASSIGN/6