IEaxDataSources.Move

Syntax

Move(IndexFrom: Integer; IndexTo: Integer);

Parameters

IndexFrom. Index of the position of moved data source.

IndexTo. Index of the position, to which data source should be moved.

Description

The Move method moves a data source within the collection.

Comments

A data source is moved form the position with the IndexFrom index to the position with the IndexTo index.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. This express report should contain two or more data sources.

Add links to the Express and Metabase system assemblies.

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

After executing the example, the first data source will be moved to the second position in the collection of express report data sources.

See also:

IEaxDataSources