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

ParameterDescription
lDataValue 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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A