ListBox-SelectString

Function Name dcl-ListBox-SelectString
Syntax   (dcl-ListBox-SelectString <CONTROL> Search [as String] {StartIndex [as Long]})
Return Type Long
Applies To List Box

This method performs a case insensitive search for an item in the combo box list that begins with Search, and selects the first matching item if one is found. The search starts with the item at StartIndex and continues past the last item back to the first item until the entire list has been searched. If StartIndex is not specified, the search begins with the first item in the list. The return value is the index (zero based) of the first matching item, or -1 if no item is found.