findStringCaseSensitive

findStringCaseSensitive(startIndx: Integer;
                        str:       String): Integer;

The findStringCaseSensitive method of the ListBox class or ComboBox class searches the entries in a list box or combo box control for an entry with the case‑sensitive string specified in the str parameter.

The findStringCaseSensitive method matches any entry with the specified case-sensitive string prefix.

The search starts with the value specified in the startIndx parameter and returns the next found case‑sensitive entry in the list. If no matching entry is located, it returns -1.

The method in the following example shows the use of the findStringCaseSensitive method.

textBoxLeftStart_change(textbox: TextBox input) updating;
vars
    count : Integer;
begin
    count := listBoxLeft.findStringCaseSensitive(1, textBoxLeftStart.Text);
    if count <> -1 then 
        listBoxLeft.topIndex := count;
    endif;
end;

2016.0.02 (Service Pack 1) and higher