ValueByText Method
The ValueByText method returns the EnumValue column value from the row that contains the specified textvalue in the EnumText column.
This method has the following syntax:
integer = ChoiceList.ValueByText(textvalue = nvarchar)
This method has the following parameter:
textvalue
Specifies the textvalue
If more than one row contains the specified textvalue, this method returns only the first row. If there are no rows with that value, the method returns CL_INVALIDVALUE.