IPrxDataSources.Clear

Syntax

Clear;

Description

The Clear method deletes all data sources of the regular report.

Example

Executing the example requires a regular report with the REGULAR_REPORT identifier that contains data sources. Add links to the Metabase, Report system assemblies.

Sub Main;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("REGULAR_REPORT").Edit;
    Report := MObj As IPrxReport;
    DtSources := Report.DataSources;
    DtSources.Clear;
    MObj.Save;
End Sub Main;

After executing the example all data sources will be deleted from regular report.

See also:

IPrxDataSources