IASPowerListBox::FindItem

This method finds the item that has a value that matches the value of bstr.

Syntax

HRESULT FindItem( BSTR bstr, long lIndexStart, long *pIndex );

Parameters

bstr
Unicode string to search for.
lIndexStart
Long integer that contains the starting index.
pIndex
Pointer to the index of the item that matches bstr.

Return Values

NOERROR indicates success. E_OUTOFMEMORY indicates that the system is out of memory.

Remarks

If this is a sorted list box, a binary search is performed; otherwise, a linear search is conducted.