Include Scripts
Include scripts are scripts that contain 4GL code that you can include anywhere in your frame, procedure, or user class script by using the #include statement. This statement references an include script component in the current or an included application.
Your 4GL code block does not appear in the frame script until after the script has been processed. In the preprocessed version, you see only the #include statement and the name of your script as described in
The #include Statement (see
The #include Statement).
You can use include scripts for:
• Code sharing that cannot be accomplished by including the code in a called procedure or method—for example, blocks of code that include on event statements or conditions
• Variable definition
Include scripts can exist in your current application or in any included application. You create and edit include scripts in OpenROAD Workbench by using the Include Script Editor. You can also display a list of include scripts for an application in the Components portlet of the Develop tab. For more information about how to use this option, see the Workbench User Guide.