Include Directive (DPL Code)

The DPL language has a compiler directive that allows a DPL program to be broken into several pieces. The compiler directive to include a program is:

#include name

The instruction may be coded in DPL programs and command procedures. As with all DPL compiler directives, this instruction must begin in the first column of the line. In addition, there can be only one space between #include and name. The name argument must exactly match the Program window name as shown in the Workspace Manager window.

When the compiler encounters the #include directive during compilation or command execution, it will suspend processing of the current input program and take its input from the program specified as the argument of the directive. When the compiler completes the processing of the included program, it will return to the suspended program and continue. Included programs may be nested to any level; however, recursive #include sequences are not allowed.

When compiling a program, the DPL compiler will ignore duplicate variable definitions encountered in an included file (the higher level definitions will "override" those in the include file).

Versions: DPL Professional, DPL Enterprise, DPL Portfolio

See Also

Converting Spreadsheets to DPL Code

Compiler Directives

The Sequence Section