home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / basic / QBPRO7.ZIP / PPDEMO.BAS < prev    next >
Encoding:
BASIC Source File  |  1989-07-24  |  581 b   |  18 lines

  1. ' This program demonstrates how the PreProcessor program handles
  2. ' conditional compiling.
  3.  
  4. ' Since we tell the program that the client is SEARS, only the second
  5. ' PRINT statement is compiled.
  6.  
  7. ' Take a look at the file PPDEMO.$$$. After the PreProcessor program
  8. ' has anyalyzed this file, it has the compiler process PPDEMO.$$$. Note
  9. ' that only the PRINT statement associated with SEARS is sent to the
  10. ' compiler.
  11.     
  12.     '#Client$=SEARS
  13.     '#IF Client$ = IBM
  14.         PRINT "Client: IBM"
  15.     '#ELSEIF Client$ = SEARS
  16.         PRINT "Client: Sears"
  17.     '#END IF
  18.