IPrxSliceDimension.Slice

Syntax

Slice: IPrxSlice;

Description

The Slice property returns the object that contains the slice, which includes this dimension.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

Contr: IPrxControl;

Slice: IPrxSlice;

s: String;

Begin

MB := MetabaseClass.Active;

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

Contr := Report.Controls.Item(0);

Slice := Contr.Dimension.Slice;

s := Slice.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the slice that includes the dimension controlled by the first control.

See also:

IPrxSliceDimension