IPrxReportControls.Clear

Syntax

Clear;

Description

The Clear method deletes all controls of a regular report sheet.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

Contr: IPrxReportControls;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

Contr := Report.Controls;

Contr.Clear;

MObj.Save;

End Sub Main;

After executing the example all regular report controls are deleted. The identifier of the regular report - Report.

See also:

IPrxReportControls