Include
Compilation
The Include function includes the specified source file into the current script
Syntax
Include "<source_filename>"
Parameters
<source_filename>, the source script to be included into the main script at compilation. If the included script is in the same directory than the main script, the full path is not necessary ; if not, you must specify the full path for the included script (for instance, "C:\program files\my_scripts\my_script.src"). Relative paths are allowed : Include ".\sub1\sub1script1.src".
Remarks
If you use multiple Include lines, you have to ensure that the full long script with those inclusions keep the correct program structure, first the Dim lines, second the Functions and Subs definitions and last the main program. Yo need too to ensure that all the Subs/Functions are declared before using them in another Function/Sub. You have to ensure that there are not duplicate names. And for maintenance ease, we recommend that you use different parameters names within the different Functions/Subs.
See also
Example
include "script1.src"