IEtlPlainFields.MoveDown

Syntax

MoveDown(Index: Integer);

Parameters

Index. Field index.

Description

The MoveDown method moves a field in a list one position down.

Example

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    EtlTask: IEtlTask;
    Object: IEtlPlainDataProvider;
    Output: IEtlPlainOutput;
    Fields: IEtlPlainFields;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("Etl").Edit;
    EtlTask := MObj As IEtlTask;
    Object := EtlTask.Item(0As IEtlPlainDataProvider;
    Output := Object.PlainOutput;
    Fields := Output.Fields;
    Fields.MoveDown(0);
    MObj.Save;
End Sub UserProc;

After executing the example the first field in a fields list is moved one position down. ETL task object is Data Source. The repository object has the ETL identifier.

See also:

IEtlPlainFields