#include
(Preprocessor Statement)
Fetches the preprocessor program.
#include "[Path] file name"
#include <[Path] file name>
This statement fetches the preprocessor program file, at a position where the #include statement is placed. In the case of " ", if the path of the file is ignored the system searches for the file in the current directory first and then the system directory. In the case of < >, it searches only the system directory. If the path is designated with a full path, it searches only in the directory designated.
You can include the #include statement for a file designated with the #include statement. You can nest up to 8 levels.
There are H and PAC file extensions available to designate.
Note for the folder feature [RC7 Version 2.2 or later]
(1) #include <filename>
Searches for the specified file in the system folder.
(2) #include "filename"
Searches for the specified file in the folder where the current program is located.
(3) #include "\(folderpath)\filename"
Searches for the specified file in the folder located at the end of the folder path starting from the root.
(4) #include "..\filename" or #include ".\filename."
.. \:
|
Searches for the specified file in the folder just above the current level.
|
. \:
|
Searches for the specified file in the folder where the current program is located.
|
Example) #include ". \..\TEST.H"
Searches for TEST.H in the folder just above the current level.
#include "samp1.h"
|
'Expands the samp1.h file on this line.
|