◄Summary► ◄Details► ◄Example► ◄Back► Argument name String expression representing the name of the environment variable Returns <string type> Current value of name, or empty string if the environment variable is not defined Description The GetEnv function returns the current value of an existing environment variable. The name argument passes a string representing the name of the environment string to be returned. GetEnv is not case-sensitive. The equal sign (=) is not allowed. The returned string contains the string associated with the environment variable. For example, if the environment contains the PATH setting PATH=C:C:P, GetEnv returns the string 'C:C:P' from the following call: result := GetEnv( 'PATH' ); GetEnv returns a null (empty) string if the environment variable does not exist.