qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
GetEnv Function
  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.