TCnComboBox.FindStringExact(String,Integer) Method

Finds the first item after the specified index that matches the specified string.

Namespace: CNClrLib.Control.ComboBox
public
 function FindStringExact(S: String; StartIndex: Integer): Integer; overload;

Parameters

S
Type: String

The String to search for.

StartIndex
Type: Integer

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

Return Value

Type: Integer

The zero-based index of the first item found; returns -1 if no match is found, or 0 if the s parameter specifies Empty.