$INCLUDE

From QB64 Wiki
Revision as of 01:46, 17 September 2009 by 213.65.178.174 (talk) (Created page with '$INCLUDE is a metacommand that is used to insert a source file into your program which is then executed at the point of the insertion. The source file included can contain any …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$INCLUDE is a metacommand that is used to insert a source file into your program which is then executed at the point of the insertion.


The source file included can contain any BASIC statement except SUB or GOTO.


Syntax: REM|' $INCLUDE: 'sourcefile'


Note: The $INCLUDE metacommand should be the last statement on a line since execution progresses after the line of the $INCLUDE metacommand.


Note 2: $INCLUDE is also often used to DECLARE functions and subs used in a external library.


Note 3: There must always be a REM or ' comment before the $INCLUDE metacommand.