qb45advr.hlp (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.
$INCLUDE Metacommand Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
$INCLUDE Metacommand Details
 
The $INCLUDE metacommand instructs the compiler to temporarily switch
from processing one file and instead to read program statements from
the BASIC file named in the argument. When the end of the included
file is reached, the compiler returns to processing the original file.
Because compilation begins with the line immediately following the
line in which $INCLUDE occurred, $INCLUDE should be the last statement
on a line. The following statement is correct:
 
  DEFINT I-N   ' $INCLUDE: 'COMMON.BAS'
 
There are two restrictions on using Include files:
  ■ Included files must not contain SUB or GOTO statement
  ■ Included files created with BASICA must be saved with the ,A option.