FieldCount: Integer;
The FieldCount property returns number of index fields.
Index field is a column of records containing data source fields identifiers by which indexing is performed. There can be an identifier of one data source field in each index field.
Sub Main;
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 Main;
After executing this example the "i" variable contains number of index fields. Type of ETL task object is Join. Repository object has the ETL identifier.
See also: