Enumeration data types have numeric format and representation just like TestStand numbers. Both can be set on the type definition in exactly the same way they are set for numbers. The numeric format may be different for type instances than it is for the definition. The numeric representation is a property of the type and cannot be changed on individual instances.

Flags enumerations with the default 64-bit float representation must be integers in the range [0, 2^32 - 1] inclusive. You can set non-flags enumerations with the default representation to any value, although you should use non-integer values with caution since most code modules treat enumerations as integers.

You can convert a TestStand enumeration to a number using GetValNumber(), GetValInteger64(), or GetValUnsignedInteger64() as appropriate with thePropOption_CoerceFromEnum option. Alternatively, you can use the Float64(), Int64(), orUInt64() expression functions. You can assign a number to an enumeration usingSetValNumber(), SetValInteger64(), or SetValUnsignedInteger64() as appropriate with thePropOption_CoerceToEnum option. For further details, see the Enumerations asPropertyObjects and Enumerations in TestStand Expressions sections.