Finding an Item in a List
- Last UpdatedJul 13, 2023
- 1 minute read
You can find an item in a Combo Box or List Box list. You specify the item caption, and the method returns the index number of the first item found. Otherwise, the method returns -1.
Finding an item in a Combo Box or List Box list
-
In an action script, use the following method:
Index = ControlName.FindItem("ItemCaption");
where ControlName is the name of the Combo Box or List Box control and ItemCaption is the caption of the item you are looking for.
The index is set to -1 if the item is not found, otherwise it contains the index of the first found item. The first item of the list has an index of 0.