IPivotSorterData.IndexInHeader

Syntax

IndexInHeader(Index: Integer): Integer;

Options

Index is a column index in the sorting list.

Description

The IndexInHeader property returns column index in the table by column index in the sorting list that is passed by the Index parameter.

Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, which is used as a data source for the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

OLAP: IEaxAnalyzer;

Pivot: IPivot;

Sorter: IPivotSorter;

SortDate: IPivotSorterData;

i: Integer;

Begin

OLAP := UiErAnalyzer1.ErAnalyzer;

Pivot := OLAP.Pivot;

Sorter := Pivot.Sorter;

SortDate := Sorter.ColumnsDataSort;

For i := 0 To SortDate.Count - 1 Do

Debug.WriteLine(SortDate.IndexInHeader(i));

End For;

End Sub Button1OnClick;

After executing this example, clicking the button displays column indexes, according to which sorting in the table is set.

See also:

IPivotSorterData