ListBox.findString

Overview | Methods | Fields | This Package | All Packages

ListBox.findString

Finds the first item in the list 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 list 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.