Promoting Class Constants to Global Constants

Use the Promote command from the Constants menu in the Class Browser to promote a class constant to a global constant.

To promote a class constant to a global constant

  1. In the Constants list of the Class Browser, select the class constant that you want to promote.

  2. Select the Promote command from the Constants menu. (The Promote command is disabled if no class constant is selected.)

    The Promote Constant dialog is then displayed, showing the name of the constant you selected for promotion.

  3. In the drop-down list of the Select Category combo box, select the global constant category to which the selected constant is to be promoted. All global constant categories in the current schema and its superschemas are displayed for selection.

  4. Click the OK button. Alternatively, click the Cancel button to abandon your selection.

The class constant is then promoted to your selected category.

As global constant names must be unique to the schema in which they are defined and cannot have the same name as a class constant, the constant is moved from the class in which it was defined to the global constant category.

You can promote only class constants. (You cannot demote a global constant to a class.)