LabVIEWParameterElement.GetEnumValues

Syntax

LabVIEWParameterElement.GetEnumValues

Return Value

Object Array

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.

Note TestStand supports ring control values only when you use LabVIEW 2012 and later.

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

ExpressionEdit.SetAdditionalEvaluationConstants

LabVIEWParameterElement.Type

LabVIEWParameterElement.ValueExpr