Skip to content

#EndHeader

See Also: #Header, Precompiling

Purpose

To terminate a precompiled program-header section.

Syntax

#Header
source code to be precompiled
#EndHeader

What It Does

The #Header … #EndHeader compiler directives mark a block of code for pre-compilation. You may not use a #Header … #EndHeader pair to split any compound statement (such as an object declaration).

An example of a program with a block marked for pre-compilation is shown below:

#Header
Use Windows.pkg
Use DFPanel.pkg
#EndHeader

A program may have no more than one #Header … #EndHeader pair.

Notes

  • #Header must be the first non-comment line in a program. The compiler will ignore any pre-compiled block that does not begin at the top of the program.

  • You must set the pre-compile switch in the compiler to pre-compile the marked block. Refer to the compiler option flags section of the help.