Include
Syntax
Include "Filename"
Overview
Include another file at the current point in the compilation. All the lines in the new file are compiled as if they were in the current file at the point of the Include directive.
A common use for the include command is shown in the example below. Here a small master program is used to include a number of smaller library files which are all compiled together to make the overall program.
Parameter
Filename is any valid Positron16 file.
Example
' Main Program Includes sub files
Include "StartCode.inc"
Include "MainCode.inc"
Include "EndCode.inc"
Notes.
The file to be included into the BASIC listing may be in one of several places on the hard drive if a specific path is not chosen.
1… Within the BASIC program's directory. 2… Within the Compiler's current directory. 3... Within the user's Includes folder, located in the user's PDS directory. 4… Within the Includes folder of the compiler's current directory. 5… Within the Includes\Sources folder of the compiler's current directory.
The list above also shows the order in which they are searched for.