IPrxDrillCellResult.Selection

Syntax

Selection: IDimSelectionSet;

Description

The Selection property returns selection of the slice used as a data source for a specified cell.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

Sheet: IPrxSheet;

Drill: IPrxDrillCellResult;

i: Integer;

Begin

MB := MetabaseClass.Active;

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

Sheet := Report.ActiveSheet;

Sheet.Recalc;

Drill := Sheet.DrillCell(4,1);

i := Drill.Selection.FindById("CALENDAR").SelectedCount;

End Sub Main;

After executing the example the "i" variable contains the number of selected elements of the slice dimension with the CALENDAR identifier. The identifier of the regular report - Report.

See also:

IPrxDrillCellResult