forlang.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.
$DEFINE and $UNDEFINE
                                             Up Contents Index Back
─────$DEFINE and $UNDEFINE──────────────────────────────────────────────────
 
     Action
 
     $DEFINE creates a symbolic variable whose existence or value can be
     tested during conditional compilation; $UNDEFINE removes the symbol.
 
     Syntax  $DEFINE symbol-name [= val]
             $UNDEFINE symbol-name
 
     Parameter          Description
 
     symbol-name        A name of up to 31 characters.
 
     val                Any positive or negative INTEGER*4 value.
 
     Remarks
 
     The default is $UNDEFINE, since any symbol name not specified in
     a $DEFINE metacommand tests .FALSE..
 
     The existence of a <symbol-name> is tested by the DEFINED
     conditional expression.
 
     The $DEFINE and $UNDEFINE metacommands can appear anywhere in a
     program, enabling symbol definitions as desired.
 
     Example
 
     $DEFINE  testflag
     $DEFINE  testval = 2
     .
     .
     .
     $UNDEFINE  testflag
 
     The $DEFINE metacommand is equivalent to the /D compiler option.
                                    -♦-