DhSelectBox.findString

Overview | Methods | This Package | All Packages

DhSelectBox.findString

Finds the first item in the list that starts with the specified string.

Syntax

public 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 located. Set to -1 to search from the beginning of the list.

Return Value

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