IPrxDrillCellResult.DataSource

Syntax

DataSource: IPrxDataSource;

Description

The DataSource property returns the data source containing the slice used as a data source for the specified cell.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

Sheet: IPrxSheet;

Drill: IPrxDrillCellResult;

s: String;

Begin

MB := MetabaseClass.Active;

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

Sheet := Report.ActiveSheet;

Sheet.Recalc;

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

s := Drill.DataSource.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the data source. The identifier of the regular report - Report.

See also:

IPrxDrillCellResult