Include (Advanced)

Top  Previous  Next

Large programs can be broken into smaller, more manageable pieces in several ways. One way is to use the "include" command word to automatically insert another file when you compile your program. For example, it is convenient to "include" the file CODESI.XPL that declares all the intrinsics:


        include C:\CXPL\CODESI;


Note that backslashes specify the path name in the normal DOS manner, and do not indicate a comment in this situation. The default extension is .XPL, so it does not need to be written, and other extensions can be used. Only one file name can follow "include", and it must be terminated by a semicolon.


Any number of files can be included in a program. An included file can itself include other files. Included files can be nested in this fashion up to eight levels.