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