Language Reference Guide : System Classes : ChoiceList Class : IndexByText Method
 
Share this page          
IndexByText Method
The IndexByText method returns the sequence number of the row in the ChoiceItems array that contains the specified textvalue in the EnumText column.
This method has the following syntax:
integer = ChoiceList.IndexByText(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, this method returns zero.