13. Building Applications : The Globals Submenu of the Edit an Application Frame : Using Alternate Sets of Global Constant Values : Create an Alternate Global Constants File
 
Share this page                  
Create an Alternate Global Constants File
You can create a global constants file with your system editor, or copy the default global constant values (that you defined through the Edit Global Constants window) into a file.
To create an alternate set of global constants from the default set
1. Select Utilities from the menu in the Applications Catalog window or Application Flow Diagram Editor.
2. Select ConstantsFile from the menu.
3. Specify a filename in the Global Constants File Name field.
4. Select Create to copy the default global constants into a file.
To create an alternate set of global constants with your system editor
Create and edit a file with the following format:
A constant name, which must begin in column 1.
The character : or =. White space can appear on either side of this character.
A value for the constant. The value can continue across multiple lines, but continuation lines must begin with a space, or tab.
For example:
menu1: 'This is the first menu item'
menu2 = 'Menu2 is the second menu item'
The file can also contain comments beginning with a # character. For more information about the global constants file format, see the SQL Reference Guide section on the PM file format.