Slice: IPrxSlice;
The Slice property returns a parent object.
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.Dimensions.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: