ITabCustomSort.CaseSensitive

Syntax

CaseSensitive: Boolean;

Description

The CaseSensitive property determines whether the sorting is to be case sensitive.

Example

Exxecuting the example requires a form with the Button1 button located on it, the TabSheetBox component named TabSheetBox1 and the UiReport component which is set to report and which is used as a data source for the TabSheetBox component.

It is required to connect the Report, Tab system assemblies.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Tab: ITabSheet;
        Report: IPrxReport;
        Sheet: IPrxSheet;
        CustomSort: ITabCustomSort;
        SortItem: ITabCustomSortItem;
    Begin
        // Get table instance
        Report := UiReport1.Report;
        Sheet := Report.ActiveSheet;
        Tab := (Sheet As IPrxTable).TabSheet;
        // Determine table sorting settings
        CustomSort := Tab.CustomSort;
        CustomSort.Clear;
        CustomSort.Range := Tab.Table;
        CustomSort.Add(Tab.ColumnIndex("A"));
        CustomSort.CaseSensitive := True;
        SortItem := CustomSort.Item(0);
        SortItem.Direction := TabCustomSortDirection.Ascending;
        SortItem.Type := TabCustomSortType.Text;
        // Apply sorting
        CustomSort.Sort;
        // Determine whether sorting by columns were used
        debug.Write(CustomSort.IsColumnSort.ToString);
    End Sub Button1OnClick;

Click the button to apply ascending sorting to A column. Sorting is case sensitive.

Sorting is not case-sensitive:

Sorting is case-sensitive:

See also:

ITabCustomSort