FieldCount: Integer;
The FieldCount property returns the number of index fields.
Index field is a column of records containing data source fields identifiers, by which indexing is executed. Each index field can contain an identifier of one data source field.
Sub UserProc;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Join: IEtlPlainDataJoin;
Index: IEtlPlainIndex;
i: Integer;
Begin
MB := MetabaseClass.Active;
EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
Join := EtlTask.Item(0) As IEtlPlainDataJoin;
Index := Join.Index;
i := Index.FieldCount;
End Sub UserProc;
After executing the example the "i" variable contains the number of index fields. The type of ETL task object is Join. The repository object has the ETL identifier.
See also: