<<

Contents

Search

>>

 

GETENV$

 

 

Function

 

 

Syntax:

GETENV$(<Environment Variable>)

 

<Environment Variable> = <STRING-EXPRESSION>

 

Meaning:

Reads an environment variable.

 

If GETENV$ has been executed successfully, the variable OK is set to 0, otherwise OK is -1 and GETENV$ returns the empty string "".

 

Parameter:

Environment Variable

Name of environment variable

 

Sample:

ENV$ = GETENV$("windir")

IF OK = -1

THEN ... Error ...

ENDIF

 

See also:

GETENV_CLIENT$