IEtlPlainFields.MoveDown

Syntax

MoveDown(Index: Integer);

Parameters

Index - field index.

Description

The MoveDown method moves a field in a list one position down. 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.MoveDown(0);

MObj.Save;

End Sub Main;

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