Workbench User Guide : 13. Writing Scripts and Procedures : How You Can Write Include Scripts
 
Share this page                  
How You Can Write Include Scripts
An include script is a script that you can insert (include) into other scripts in your application. This helps avoid redundant coding of common application variables and procedures.
To reference an include script in your other scripts, you must use the #include statement to identify it, and it must already exist as a component of this application.
The #include statement has the following syntax:
#include include_script_name
When you compile the frame, the include script is merged into your script, and then compiled.
For more information about the #include statement and preprocessor extensions, see the Programming Guide. To create include script components, see the chapter Adding Other Components to Your Application.