ITabCellSearch.CaseSensitive

Syntax

CaseSensitive: Boolean;

Description

The CaseSensitive property determines whether the searched characters are case sensitive.

Example

To execute the example a form with a button on this form named Button1, a component UiTabSheet named UiTabSheet1 and a component TabSheetBox are required. The UiTabSheet1 is a data source for the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TSheet: ITabSheet;
    CellSearch: ITabCellSearch;
    Result: ITabSearchResult;
    i, j: Integer;
Begin
    TSheet := UiTabSheet1.TabSheet;
    CellSearch := TSheet.CreateCellSearch;
    CellSearch.Text := "DATA";
    CellSearch.CaseSensitive := True;
    Result := CellSearch.Execute;
    If Result <> Null Then
        i := Result.CurrentRow;
        j := Result.CurrentColumn;
    End If;
End Sub Button1OnClick;

Clicking this button starts case sensitive search for the DATA value. After executing the event, the variable i will contain the row number, and the j - the cell column number.

See also:

ITabCellSearch