SetEnvironment

Description:

baSetEnvironment sets the value of an environment variable.

Platforms:

Windows

Usage:

Result = baSetEnvironment( Variable, Value )

Arguments:

String, string.
Variable is the name of the variable to get.
Value is the value to set the variable to.

Returns:

Integer.
Returns 1 if successful, otherwise 0.

Examples:

Director:
OK = baSetEnvironment( "UserResults", "pass" )

Authorware:
OK := baSetEnvironment( "UserResults", "pass" )
 

Notes:

There are both system (available to all applications) and local (available only to the current application) variables, and they may have the same name. This function will only work with local variables, and will not change system variables. For example, you can not change the system path variable using this functions.
 

See also:

baEnvironment