Show contents 

Report > Report Assembly Interfaces > IPrxSliceDimension > IPrxSliceDimension.Slice

IPrxSliceDimension.Slice

Syntax

Slice: IPrxSlice;

Description

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

Example

Sub UserProc;
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 UserProc;

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