ListViewEx.
Returns the index of an item in the listview.
This functionality is supported only if you are using the Open Agent.
iIndex = listView.GetItemIndex(sItem)
| Variable | Description |
|---|---|
| iIndex | The item index. INTEGER. |
| sItem | The item to find. STRING. |
If the item sItem is not found, GetItemIndex returns zero (0).
INTEGER iIndex
// Determine which number d: is in list of drives
TextEditor.File.Open.Pick()
iIndex = Open.Drives.GetItemIndex("d:*")