Home > Language Reference > Classes > ChoiceControl
FindItemData Method
Finds an item in a list from its value.
Syntax
Public Function FindItemData(ByVal lData As Long) As Integer
| Parameter | Description |
| lData | Value to find. |
Remarks
The FindItemData function finds the first item in the list whose associated value is lData. The returned value can be used, for exemple, to select the found item using the ListIndex property. If no item matches the search, the returned value is -1.
You can also find an item from its text caption using the FindString function.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |