MiscGetEnumValue()
- Last UpdatedAug 24, 2016
- 1 minute read
This method queries the value of the enumeration based on the enumeration set name and the enumeration name. For example, if the enumeration set name is Mode, the value 1 is defined as Manual, 4 as Semi-Auto, and 20 as Automatic in the Process Model Editor for Enumerations, then MiscGetEnumValue("Mode", "Semi-Auto") would return 4. This method is used to determine enumeration values for both the EditPhaseParam list and the PhaseParam list. A long integer return value contains the enumeration value.
Syntax
ReturnValue = OcxBatchVar.MiscGetEnumValue(SetName, EnumName)
Parameters
SetName
Data Type: String
Enumeration set name
EnumName
Data Type: String
Enumeration name string