IEaxDataSources.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. Data source index.

Description

The Remove method removes a data source.

Comments

Available values:

Data source index is sent by the Index parameter.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.

Add links to the Express and Metabase system assemblies.

Sub Main;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    ExpDs: IEaxDataSources;
    Res: Boolean;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("EXPRESS_REPORT").Edit;
    Expr := MObj As IEaxAnalyzer;
    ExpDs := Expr.DataSources;
    Res := ExpDs.Remove(0);
    MObj.Save;
End Sub Main;

After executing the example, the first data source will be removed from the collection of express report data sources. The Res variable will store removal result.

See also:

IEaxDataSources