Language Reference Guide : System Classes : ChoiceList Class : ValueByDisplay Method
 
Share this page          
ValueByDisplay Method
The ValueByDisplay method returns the EnumValue column value from the row that contains the specified displayvalue in the EnumDisplay column.
This method has the following syntax:
integer = ChoiceList.ValueByDisplay(displayvalue = nvarchar)
This method has the following parameter:
displayvalue
Specifies the displayvalue
If more that one row contains the specified displayvalue, this method returns only the first row. If there are no rows with that value, this method returns CL_INVALIDVALUE.