Environment

Description:

baEnvironment returns the value of an environment variable.

Platforms:

Windows

Usage:

Result = baEnvironment( Variable )

Arguments:

String.
Variable is the name of the variable to get.

Returns:

String.
Returns the value of the variable, or an empty string if the variable doesn't exist.

Examples:

Director:
path = baEnvironment( "PATH" )

Authorware:
user := baEnvironment( "USERNAME" )
 

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 work with both types of variables. It will first check if there is a local variable, if there isnít then it will check for a system variable.
 

See also:

baSetEnvironment