Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

GETENV()

Obtains system environmental settings.
---------------------------------------------------------------------------------

 Syntax

        GETENV(<cEnviroment>, <cDefaultValue> )  --> <cReturn>  

 Arguments

        <cEnviroment>   Enviromental variable to obtain.      

        <cDefaultValue>   Optional value to return if <cEnvironment> is 
                  not found.

 Returns

        <cReturn>       Value of the Environment Variable.    

 Description

      This function yields a string that is the value of the  environment
      variable <cEnviroment>, which is stored at the  system level with
      the Set command. If no environment variable  can be found, the value
      of the function will be <cDefaultValue>  if it is passed, else an
      empty string.

 Examples

      ? QOUT(GETENV('PATH'))
      ? QOUT(GETENV('CONFIG'))
      ? QOUT(GETENV('HARBOURCMD', '-n -l -es2'))
  

Status

      Ready

 Compliance

      This command is Ca-Clipper compliant.  The <cDefaultValue> parameter
      is a Harbour extension.

 Platforms

      All

 Files

     source/rtl/gete.c  Library is rtl
     source/rtl/gete.c  Library is rtl

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson