This function can be used to change the value of an environment variable for the current process.
Important:
In the Java version, system properties are shared at JVM level. Using this function can therefore affect multiple Adelia program chains (whether in a Web server or in a server part in a Java MT daemon).
Context
Windows client,
Windows server,
Java client
Java server,
Adelia Web client,
Adelia Cloud client.
Parameters
ALPHA(n) |
Variable |
Variable name. |
ALPHA(n) |
Value |
New variable value. |
Note on Java/Web/Cloud support:
In Java, the VaToolBxGetEnv and VaToolBxPutEnv functions can be used to get and set system properties (System.getProperty() / System.setProperty()).
Note on Mobile support:
As the concept of environment is not implemented in Windows Mobile, the VaToolBxGetEnv and VaToolBxPutEnv functions are not supported.
Example
ALPHA(50) |
Variable |
ALPHA(256) |
Value |
|
|
* Changes the 'MYVARIABLE' variable to 'MYVALUE' |
|
Variable |
= 'MYVARIABLE' |
Value |
= 'MYVALUE' |
CALL_DLL |
'VaToolBx' 'VaToolBxPutEnv' Variable Value |
List of the VaToolBx functions by topic