Enumeration Parameters - ActiveX/COM Call Parameters
- Updated2024-10-09
- 1 minute(s) read
Enumeration Parameters - ActiveX/COM Call Parameters
Enumeration Parameters
Use the ring control in the Value column of the Parameters Table on the ActiveX/COM Module tab of the Step Settings pane in the TestStand Sequence Editor or in the Edit ActiveX/COM Call dialog box in a TestStand User Interface to select one of the enumeration values, or enter an expression that evaluates to a number or a compatible TestStand enumeration data type.
To pass an enumeration parameter to an ActiveX/COM code module using a number, specify a TestStand expression that evaluates to a number. The number must have the numeric representation compatible with the underlying integer data type of the code module.
To pass an enumeration parameter using the TestStand enumeration data type, specify a TestStand expression that evaluates to an enumeration that is compatible with the underlying enum definition in the code module. To be compatible, the TestStand type and underlying enum type in the code module must have identical sets of enumerators. Both types must have the same number of enumerators matching in both name and numeric value, as well as compatible numeric representations. The order in which the enumerators are defined does not matter.