WinXListBox_GetIndex


WinXListBox_GetIndex (hListBox, Item$)

Gets the index of a particular item

Parameter Description
hListBox The handle to the list box to find the item in
Item$ The item to search for

Returns

The 0 based index of the item or -1 if it can't be found

Remarks

The search is case sensitive.

Examples

'Locate an item in the list
index = WinXListBox_GetIndex (hLB, UserName$)

Related Links

WinXAddListBox
WinXListBox_GetItem$