Table Of Contents

Enum Data

Last Modified: August 9, 2019

The enumerated type, or enum, is a container for a finite set of user-named values. Each item in the set has both a string and a numeric value.

On the diagram, an enum appears as a pull-down list of names represented as numeric data.

You can use the named values to drive the logic of your program. For example, you can wire an enum constant or control to the selector of a Case Structure to create cases that correspond to each item in the enum.

You can use the numeric values within the enum for numeric calculations or comparisons. If you wire an enum control to a numeric node or indicator, the enum value is coerced to a numeric value. All arithmetic functions except Increment and Decrement treat enum data the same as an unsigned integer.

Recently Viewed Topics