FindItem Function (ComboBox ListBox ListView PopupList RadioList)

Class

  • ComboBox
  • ListBox
  • ListView
  • PopupList
  • RadioList

Action

Returns the index of an item in the combo box, list box, listview, popup list, or radio list.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

iIndex = list.FindItem(sItem)
Variable Description
iIndex The item index. INTEGER.
sItem The item to find. STRING.

Notes

If the item sItem is not found, FindItem returns zero (0).

Example

INTEGER iIndex
// Determine which number d: is in list of drives
TextEditor.File.Open.Pick()
iIndex = Open.Drives.FindItem("d:*")