Count: Integer;
The Count property returns the number of input or output fields of ETL task object.
Sub Main;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Join: IEtlPlainDataJoin;
Input: IEtlPlainInput;
Fields: IEtlPlainFields;
i: Integer;
Begin
MB:=MetabaseClass.Active;
EtlTask:=MB.ItemById("ETL").Bind As IEtlTask;
Join:=EtlTask.Item(0) As IEtlPlainDataJoin;
Input:=Join.PlainInputs.Item(0);
Fields:=Input.Fields;
i:=Fields.Count;
End Sub Main;
After executing the example the "i" variable contains the number of fields of the first input of ETL task object. The type of ETL task object is Join. The repository object has the ETL identifier.
See also: