#Include

See Also: Use

Purpose

To incorporate into a program at compile time, program source code from another source-code file.

Syntax

#Include path\filename.ext

What It Does

You can keep common macros and routines in files external to your program's source-code file and include their content in your program at compile time with the #Include command.

The entire file filename.ext will be included in the compilation process at the point(s) of the #Include(s). One #Included file can #Include yet another file. #Included files should be source (ASCII) format, not separately precompiled. The lines of the #Included file(s) will not be displayed during compilation.

If a particular #Include path\filename.ext statement is repeated in a program, filename.ext will be included again. This contrasts with the use command, which will ignore any use statement that names a file that has already been included through a previous use statement.