7. Preprocessing Your 4GL Code : Preprocessor : Include Scripts : The #include Statement
 
Share this page                  
The #include Statement
The syntax for an include statement is:
# include scriptname
scriptname
Specifies the name of the include script you want to reference
Use an #include statement for each script of 4GL code you want to reference in a frame script. The 4GL code must not be in the file system, it must be in the database.
The # sign must begin in the first column. Spaces are not required between the # sign and the rest of the statement. However, the number of white spaces between "#" and "include" are prefixed to every line in the processed include script. For example, if you want to indent the included code by four spaces, then enter the #include as "#   include" (with three spaces following the #).
The #include statement can be nested to a depth of 20.