Create an enumeration

Create an enumeration object and define enumeration members in the editor.
  1. Right-click a node to contain the enumeration and select New > All > Data type.
  2. Select Enumeration and choose Select.

    Enumeration# appears under the node.

  3. In Project view, double-click Enumeration#.

    Enumeration editor displays in the central pane.

  4. In the editor, manage the enumeration members:
    • To add a member, select Add and complete:
      • Value. Enumeration member value. Value is generally a consecutive integer.
      • Display name. Name of the enumeration member.
      • Description. Additional information about the enumeration member.
    • To edit a Value, Display name, or Description, double-click the corresponding cell and enter a new value.

    • To remove a member, select a cell in the corresponding row and select Delete.

  5. (optional) In Properties, select Add, select Display name, and enter the display name.
  6. (optional) In Properties, select Add, select Description, and enter the description.