IPrxSlices.Clear

Syntax

Clear;

Description

The Clear method deletes all data slices.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("Report").Edit;

Report:=MObj As IPrxReport;

DtSources:=Report.DataSources;

Slices:=DtSources.Item(0).Slices;

Slices.Clear;

MObj.Save;

End Sub Main;

After executing the example all slices of the first data source of the regular report are deleted. The identifier of the regular report - Report.

See also:

IPrxSlices