13. Building Applications : The Globals Submenu of the Edit an Application Frame : The Create an Application Constant Frame : Create an Application Constant
 
Share this page                  
Create an Application Constant
To create an application constant, select the Create menu item from the Edit Application Constants frame to display the Create an Application Constant pop-up frame.
To create an application constant
1. In the required Name field, enter a name that meets the limitations described in the previous section. The name must be unique.
2. You can enter a brief description of the constant in the Short Remark field.
3. In the required Type field, enter the data type of the constant.
If the type requires a length, indicate the length in parenthesis. If you don't specify a length, ABF uses the length of the value you specify in Step 4.
4. In the required Value field, enter a constant value that agrees with the type in the Type field.
If you specify a value longer than the length you specified in the Type field, ABF displays a pop-up asking if you want to truncate the value or increase the length of the data type.
5. Make sure all field values are valid before you select OK. Otherwise, ABF does not create the constant.
6. Select OK to create the constant. Cancel, instead of OK, terminates the create operation and returns to the Edit Application Constants frame.
Following successful creation, ABF displays the Edit Application Constants frame table field, where the description of the new constant is listed.