Add/edit environment variables

The Environment Variable dialog is used to add and edit environment variables.

When the New/Edit environment variable dialog appears, enter:

Type
Options are value, value list, directory, directory list, file, or file list.
Name
The name of the variable.
Value
The value of the variable. When entering the value, if the type is directory, directory list, value list or file list select the ellipses (...) to browse for the correct value. If the value contains a variable name, that name must be prefaced with $ and enclosed in parenthesis, for example $(FGLLDPATH).
Note: The list separator is always a semicolon (;) on all systems (Windows™ and UNIX™). The directory separator in a path is always a slash (/) on all systems. Respecting these conventions guarantees portability of the project across operating systems.

This figure is a screenshot of the New environment variable dialog with Type set to Directory List, Name set to FGLLDPATH, and Value set to $(FGLLDPATH);the/added/path.

Figure 1. Setting the FGLLDPATH


This figure is a screenshot of the New environment variable dialog with Type set to File, Name set to FGLPROFILE, and Value set to /home/myprofile.

Figure 2. Setting the FGLPROFILE

The value of these variables is the concatenation of the variables defined for this node and the variables defined for its parent or ancestor nodes. A variable defined for a parent or ancestor node can also be reused in definitions for a child node:

Example 1:

The parent node defines MY_VALUE=hello.

The child node can reuse it: MY_COMPLETE_VALUE=$(MY_VALUE) world.

The final value of MY_COMPLETE_VALUE will be "hello world".

Example 2:

The parent node defines MY_VALUE=foo.

The child node can reuse the parent's value and redefine the variable: MY_VALUE=$(MY_VALUE) bar.

The final value of MY_VALUE will be "foo bar".

Arrow keys can be used to change the order of the variables defined. This affects the way the variables are interpreted when the program is executed. For example:

Table 1. Variable interpretation examples
Project level Variables definition and order Result when application is executed
Project V1="hello"  
Application

V2="$(V1) world"

V1="goodbye"

V1="goodbye"

V2="hello world"

Application

V1="goodbye"

V2="$(V1) world"

V1="goodbye"

V2="goodbye world"

Note: If a foreign language Language support (text encoding) is selected in Genero Studio preferences, the LANG variable must be set appropriately to correspond to the selected encoding. Set the variable for a specific environment set in Genero Studio configurations (Tools>>Configurations).