Difference between revisions of "Handling Environmental Variable"
From ArcoWiki
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 49: | Line 49: | ||
::<code><span style="color: green; text-decoration: none;">$$ Use the command DELENV/ to remove the entry from the registry</span><br/></code> | ::<code><span style="color: green; text-decoration: none;">$$ Use the command DELENV/ to remove the entry from the registry</span><br/></code> | ||
::::<code>DELENV/'MY_REPORT_FOLDER'</code> | ::::<code>DELENV/'MY_REPORT_FOLDER'</code> | ||
| + | |||
| + | |||
| + | [[it:Gestione della variabile ambientale]] | ||
| + | [[zh-cn:处理环境变量]] | ||
| + | [[pt:Manipulando Variável Ambiental]] | ||
| + | [[de:Umgang mit Umgebungsvariablen]] | ||
| + | [[es:Manejo de variable ambiental]] | ||
| + | [[en:Handling Environmental Variable]] | ||
[[Category:Dmis_Tutorial]] | [[Category:Dmis_Tutorial]] | ||
Latest revision as of 08:25, 7 June 2018
In ARCO it is possible to create, read and delete entries in the Windows Registry, in this way the user can have specific environmental variables for his use.
Setting and Reading Environmental Variable
This is used to set general variable that can be read from all the different part programs.
The typical use is to set a path to copy result files from all the programs.
An example of application is:
- From one part program the program set the environment folder:
$$ Declare the base VariableDECL/CHAR,200, STR1STR1=ASSIGN/'C:\Report Folder')
$$ Use the command SETENV/ to create the entry in the registrySETENV/'MY_REPORT_FOLDER', STR1
- From all the other programs the program read the folder and output there:
$$ Declare the base VariableDECL/CHAR,200, STR2
$$ Use the command GETENV/ to read the entry from the registrySTR2=ASSIGN/GETENV('MY_REPORT_FOLDER')
$$ Declare the base , the dummy point, the tolerances and build the outputDECL/CHAR,200, STR2DECL/CHAR,200, STR3STR3=ASSIGN/CONCAT(str2,'output.mea')DID(OUT_FILE)=DEVICE/STOR,STR3F(q)=FEAT/POINT,CART,00,0,0,0,0,1FA(q)=FEAT/POINT,CART,00,0,0,0,0,1T(CORTOL_1)=TOL/CORTOL,XAXIS,-0.1000,0.1000T(CORTOL_2)=TOL/CORTOL,YAXIS,-0.1000,0.1000T(CORTOL_3)=TOL/CORTOL,ZAXIS,-0.1000,0.1000OPEN/DID(OUT_FILE),FDATA,V(TEXT),OUTPUT,OVERWROUTPUT/FA(Q),TA(CORTOL_1),TA(CORTOL_2),TA(CORTOL_3)
CLOSE/DID(OUT_FILE)
Deleting Environmental Variable
This is used to clean an Environmental general Variable that has been previously set.
An example of application is:
- From one part program we set the environment folder:
$$ Declare the base VariableDECL/CHAR,200, STR1STR1=ASSIGN/'C:\Report Folder')
$$ Use the command SETENV/ to create the entry in the registrySETENV/'MY_REPORT_FOLDER', STR1
- From another part program we clear the environment folder:
$$ Use the command DELENV/ to remove the entry from the registryDELENV/'MY_REPORT_FOLDER'