Language Reference Guide : 4. System Classes : ChoiceList Class : IndexByValue Method
 
Share this page                  
IndexByValue Method
The IndexByValue method returns the sequence number of the row in the ChoiceItems array that contains the specified enumvalue in the EnumValue column.
This method has the following syntax:
integer = ChoiceList.IndexByValue(enumvalue = integer)
This method has the following parameter:
enumvalue
Specifies the enumvalue
If more than one row contains the specified enumvalue, this method returns only the first row. If there are no rows with that value, it returns zero.