IPrxSlice.TopHeader

Syntax

TopHeader: IPrxSliceHeader;

Description

The TopHeader property returns the object that contains all slice dimensions located in columns.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

TopSlice: IPrxSliceHeader;

i: Integer;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DtSources := Report.DataSources;

Slices := DtSources.Item(0).Slices;

Slice := Slices.Item(0);

Slice.Execute;

TopSlice := Slice.TopHeader;

i := TopSlice.Count;

End Sub Main;

After executing the example the "i" variable contains the number of dimensions of the first slice that are located in columns. The identifier of the regular report - Report.

See also:

IPrxSlice