IEtlPlainFields.MoveUp

Syntax

MoveUp(Index: Integer);

Parameters

Index - field index.

Description

The MoveUp method moves a field in a list one position up. Field index is passed by the Index parameter.

Example

Sub Main;

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(0) As IEtlPlainDataProvider;

Output:=Object.PlainOutput;

Fields:=Output.Fields;

Fields.MoveUp(Fields.Count-1);

MObj.Save;

End Sub Main;

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