2.103 .envvar[string]
The environment variables of the program can be set using the setup object. For this purpose there are the two attributes .env[] and .envvar[].
.env[] contains all environment variables. Values which have been set with the option -IDMenv overwrite the values set in the environment.
Variables which have been set with the option -IDMenv are valid for IDM functions only. With the attribute .envvar[], however, you receive environment variables only.
Definition
-
Data type
string
-
Access
get, set
-
changed event
no
The attributes .env[] and .envvar[] are gettable and settable. They are indexed with the names of the environment variables. If the environment variable has not been set, a fail is returned on querying.
In addition you may view all variables which have been set with -IDMenv. Use the attribute .count[] for this purpose. It is indexed via .env whose return value is be the number of IDM environment variables. Now .env[] can be indexed with numbers from 1 to .count[.env] in order to find out the names of the environment variables.