DataType: DbDataType;
The DataType property determines field type.
Sub Main;
Var
MB: IMetabase;
Table: ITable;
Fields: ITableFields;
Field: ITableField;
Type: DbDataType;
Begin
MB:=MetabaseClass.Active;
Table:=MB.ItemById("TABLE_1").Bind As ITable;
Fields:=Table.Fields;
Field:=Fields.Item(0);
Type:=Field.DataType;
End Sub Main;
After executing the example, the Type variable contains the type of the first field of table with the Table_1 identifier.
See also: