IEtlPlainInputs.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. ETL task object input index.

Description

The Remove method removes an input of ETL task object, which index is passed by the Index parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Object: IMetabaseObject;
    EtlTask: IEtlTask;
    Join: IEtlPlainDataJoin;
    Inputs: IEtlPlainInputs;
Begin
    MB := MetabaseClass.Active;
    Object := MB.ItemById("ETL").Edit;
    EtlTask := Object As IEtlTask;
    Join := EtlTask.Item(0As IEtlPlainDataJoin;
    Inputs := Join.PlainInputs;
    Inputs.Remove(Inputs.Count-1);
    Object.Save;
End Sub UserProc;

After executing the example the last input of the first ETL task object is removed. The type of ETL task object is Join. The repository object has the ETL identifier.

See also:

IEtlPlainInputs