IEaxDataSources.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index is the index of a data source.

Description

The Remove method removes the data source, the index of which is passed by the Index parameter, and returns True in case of success.

Example

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

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 is removed from the collection of express report data sources. The variable Res stores deletion result.

See also:

IEaxDataSources