ENVIRON$ Function ---------------------------------------------------------------------------- Action Returns an environment string from the DOS or OS-2 environment-string table. Syntax 1 ENVIRON$ ( environmentstring$) Syntax 2 ENVIRON$ ( n%) Remarks The ENVIRON$ function uses the following arguments. ----------------------------------------------------------------------------- Argument Description ---------------------------------------------------------------------------- environmentstring$ A string constant or variable that contains the name of an environment variable. The name of the environment variable must be uppercase. For example, ENVIRON$ ("PATH") returns the path Argument Description ---------------------------------------------------------------------------- ("PATH") returns the path environment variable; ENVIRON$ ("path") returns a null string. n% a numeric expression that indicates that the nth string from the environment string table should be returned. If you specify an environment-string name, but it cannot be found in the envi Otherwise, ENVIRON$ returns the text following the equal sign in the environ If you specify a numeric argument ( n%), the nth string in the environment-s In this case, the string includes all of the text, including environmentstri If the nth string does not exist, ENVIRON$ returns a null string. The argum See Also