$INCLUDE | $I - Include source file

$INCLUDE | $I - Include source file

Language reference ›› Directives ››
Parent Previous Next

include-directive = ( $INCLUDE | $I ) file-specification .
file-specification = identifier { "." file-extension } .


Include another file in place.


<file-specification>:

May be a simple file of the form Name.Ext or a string constant between quotes (mandatory if the file name contains a path and/or spaces).

If the file name does not contain an extension, .pas is assumed.



{$INCLUDE TEST1 } // include TEST1.PAS
{$INCLUDE TEST2.INC }
{$INCLUDE 'This is a long file name.pas' }


See also global include path declaration.