FGL_SETENV()

Sets the value of an environment variable.

Syntax

FGL_SETENV(
   variable STRING,
   value STRING )
  1. variable is the name of the environment variable.
  2. value is the value to be set.

Usage

The FGL_SETENV() function sets or modifies the value of an environment variable.

There is a little difference between Windows™ and UNIX™ platforms when passing a NULL as the value parameter: On Windows, the environment variable is removed, while on UNIX, the environment variable gets an empty value (i.e. it is not removed from the environment).

Important: You may experience unexpected results if you change environment variables that are already used by the current program - for example, when you are connected to INFORMIX and you change the INFORMIXDIR environment variable.