IEtlPlainFields.MoveUp

Syntax

MoveUp(Index: Integer);

Parameters

Index. Field index.

Description

The MoveUp method moves a field in a list one position up.

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.MoveUp(Fields.Count-1);
    MObj.Save;
End Sub UserProc;

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

See also:

IEtlPlainFields