Creating Enumerated Types

To create an enumerated type (Enum):

1.      Create a user-defined data type.

For more information, see Creating User-Defined Data Types, and Variables Properties Window.

2.      When you save your selection of Enum, the data type icon changes in the Type view from the default of Struct to Enum .

For more information on the Type view, see Types View.

3.      To add values to this Enum data type, click on the type to select it. Then, select Object Below from the Insert menu to insert a new value as shown in the following example:

4.      To add additional values, select Object After or Object At from the Insert menu. The following example shows an enumerated type with several inserted values. Make sure your cursor is on Type1 before adding each value from the Insert menu.

5.      You can modify the properties, such as name or description, and the constant value in the Properties window. Right-click on the constant and select Properties. For more information, see Changing Object Names and Properties.