Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

ComboBox.findString

Finds the first item in the combo box that starts with the specified string.

Syntax

public final int findString( String s )

public final int findString( String

s**, int** startIndex )

Parameters

s

The string to match. Any string that begins with the specified characters is considered a match.

startIndex

The zero-based index of the item before the first item to be searched. Set to -1 to search from the beginning of the combo box.

Return Value

Returns the zero-based index of the item found; returns ListBox.NOMATCHES if no match is found.

Remarks

The search is not case sensitive.