LabVIEWParameterElement.GetEnumValues
- Updated2025-07-21
- 1 minute(s) read
LabVIEWParameterElement.GetEnumValues
Syntax
LabVIEWParameterElement.GetEnumValues
Return Value
Returns an array of property objects where each property object represents an enumeration value or a ring control value.
Purpose
Returns the enumeration constants for an enumeration parameter or returns the ring control values for a ring control parameter.
Remarks
Call the LabVIEWModule.LoadVIInfo method or the Module.LoadPrototype method before calling this method. The values stay in memory until the sequence file closes.
Use the name and value of the property objects in the array this method returns to determine the name and value of the enumeration constants or ring controls.
Pass the return value of this method as the additionalConstants parameter of Expression.ValidateEvaluationType when checking the LabVIEWParameterElement.ValueExpr property for errors.
If you are using an ExpressionEdit control to display the value of the LabVIEWParameterElement.ValueExpr property, pass the return value of this method to the ExpressionEdit.SetAdditionalEvaluationConstants method to instruct the ExpressionEdit control to validate enumeration constants.
See Also
Expression.ValidateEvaluationType