IEtlPlainFields.Count

Syntax

Count: Integer;

Description

The Count property returns number of input or output fields of ETL task object.

Example

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 this example the "i" variable contains number of fields of the first input of ETL task object. Type of ETL task object is Join. Repository object has the ETL identifier.

See also:

IEtlPlainFields