Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Environment Function
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     Environment («environment»)
          Executes the current line as an environment-variable setting.
 
          For example, if the current line contains the following text
          when you execute Environment:
 
               PATH=C:\UTIL;C:\DOS
 
          PWB adds this setting to the current environment table. The
          effect is the same as the operating-system SET command. PWB
          uses the new environment variable for the rest of the session
          (including shells).
 
          Depending on the settings of the Envcursave and Envprojsave
          switches, PWB saves the environment table for PWB sessions
          and/or projects.
          See: Envcursave, Envprojsave
 
     Arg <textarg> Environment («arg» <textarg> «environment»)
          Executes the argument as an environment-variable setting.
 
     Arg <linearg> │ <boxarg> Environment
     («arg» <linearg> │ <boxarg> «environment»)
          Executes each selected line or line fragment as an
          environment-variable setting.
 
     Meta Environment («meta» «environment»)
          Performs environment-variable substitutions for all variables
          on the current line, replacing each variable with its value.
 
          The syntax for an environment variable is:
 
          $(ENV) │ $ENV:
 
          where <ENV> is the uppercase name of the environment
          variable.
          See: Environment-Variable Specifiers
 
     Arg Meta Environment («arg» «meta» «environment»)
          Performs environment-variable substitutions (described above)
          for the text from the cursor to the end of the line.
 
     Arg <boxarg> │ <linearg> │ <streamarg> Meta Environment
     («arg» <boxarg> │ <linearg> │ <streamarg> «meta» «environment»)
          Performs environment-variable substitutions for the selected
          text.
 
     Returns
 
     True:  Environment variable successfully set or substituted.
     False: Syntax error or line too long.
 
     See
 
     Environment (Defined)
     Update: Arg ? Environment
                                    -♦-