#INCLUDE

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 CMM2

Syntax:
#INCLUDE file$

Description:
This will insert the file 'file$' into the program at that point. 

This file must be resident on the SD card and must have the extension ".INC".
Inserting the text is performed by the pre-processor when the program is loaded into program memory by the RUN command or on exiting EDIT or AUTOSAVE using F2. 
Because this operation is performed before the program is run it is recommended that include files are specified relative to the directory holding the program or with full pathnames. 
A command in the program like CHDIR will be executed at runtime so will not affect the location of include files. 
This command acts exactly as if the included file was manually inserted into the code using an editor but it is more convenient for loading libraries and other static code fragments. It essentially replaces the LIBRARY command on the original Maximite. 
Runtime errors in the included file are reported with the file name and line number in the file. 
The firmware will automatically check for changes in include files when a program is RUN and update the program if required.

 

Last edited: 29 September, 2020