Difference between revisions of "Executing a Variable as a Command"

From ArcoWiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
 
<code><span style="color: green; text-decoration: none;">$$ With this command line is possible to execute the memorized command</span><br/></code>
 
<code><span style="color: green; text-decoration: none;">$$ With this command line is possible to execute the memorized command</span><br/></code>
 
::<code>DMESW/COMAND,COMMAND</code>
 
::<code>DMESW/COMAND,COMMAND</code>
 +
[[it:Esecuzione di una variabile come comando]]
 +
[[zh-cn:执行变量作为命令]]
 +
[[pt:Executando uma variável como um comando]]
 +
[[de:Eine Variable als Befehl ausführen]]
 +
[[es:Ejecutando una variable como un comando]]
 +
[[en:Executing a Variable as a Command]]
  
 
[[Category:Dmis_Tutorial]]
 
[[Category:Dmis_Tutorial]]

Latest revision as of 14:06, 6 June 2018

Due to the DMIS structure, sometimes, it is necessary to build a command as a variable and then execute it.
A typical example of this application is a best fit construction of a non fixed number of elements, in order to do so, it is necessary to build variable with the name of all the feature involved in the construction, then execute that variable as command.
An example of how to use a variable as a command is the following:


$$ First we declare a char variable (called COMMAND) that will contain our command

DECL/CHAR,200,COMMAND

$$ The command line is then assigned to the variable

COMMAND=ASSIGN/'F(POI_1)=FEAT/POINT,CART, 1.111,2.222,3.333, 0,0,0'

$$ With this command line is possible to execute the memorized command

DMESW/COMAND,COMMAND