IEtlPlainIndex.RemoveField

Syntax

RemoveField(Field: Integer);

Parameters

Field. Index field position.

Description

The RemoveField method removes an index field, which position is passed by the Field parameter.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Object: IMetabaseObject;
    EtlTask: IEtlTask;
    Join: IEtlPlainDataJoin;
    Index: IEtlPlainIndex;
Begin
    MB := MetabaseClass.Active;
    Object := MB.ItemById("ETL").Edit;
    EtlTask := Object As IEtlTask;
    Join := EtlTask.Item(0As IEtlPlainDataJoin;
    Index := Join.Index;
    Index.RemoveField(0);
    Object.Save;
End Sub UserProc;

After executing the example the first index field is removed. The repository object has the ETL identifier.

See also:

IEtlPlainIndex