Workbench User Guide : 2. Structuring an Application : How You Can Share Information Between Frames : Global Constants
 
Share this page                  
Global Constants
A global constant is a literal value to which you assign a name. Like a global variable, you can access the value of the global constant from any script or 4GL procedure in the application. You set the value for the global constant when you declare it. Constant values can be changed only in the Constant Editor, not in a script.
Using global constants helps you standardize the use of literal values throughout your application. Constants make your code more readable and consistent, ensuring a reliable standard. Many global constants are built into OpenROAD (such as TRUE, FALSE, and CC_RED). For more information, see the Programming Guide.
More information:
Create a Global Constant