Range Checking: Strict and Loose Enumerations
- Updated2025-07-23
- 1 minute(s) read
TestStand enumerations can be either strict or loose. A loose enumeration can take on any numeric value. Enumerations in C, C++, and C# can be described as loose in this sense. A strict enumeration can take on only those values specified by its enumerators. Attempting to set a strict TestStand enumeration to a value that does not correspond to its enumerators results in an error. Use the Edit Enumerators dialog box to specify that an enumeration data type is strict or loose.