Show contents 

Report > Report Assembly Interfaces > IPrxSliceDimensions > IPrxSliceDimensions.Slice

IPrxSliceDimensions.Slice

Syntax

Slice: IPrxSlice;

Description

The Slice property returns a parent object.

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.Dimensions.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:

IPrxSliceDimensions