ETL > ETL Assembly Interfaces > IEtlPlainField > IEtlPlainField.DataType
DataType: DbDataType
The DataType property determines a field type of flat data provider or data consumer.
Sub UserProc;
Var
MB: IMetabase;
EtlTask: IEtlTask;
Link: IEtlPlainLink;
Input: IEtlPlainInput;
Fields: IEtlPlainFields;
Field: IEtlPlainField;
Type: DbDataType;
Begin
MB := MetabaseClass.Active;
EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
Link := EtlTask.Links.Item(0);
Input := Link.DestinationObjectInput;
Fields := Input.Fields;
Field := Fields.Item(0);
Type := Field.DataType;
End Sub UserProc;
After executing the example the Type variable contains a type of the first field of the first input of ETL task object. The repository object has the ETL identifier.
See also: