IDatasetModelField.DataType

Syntax

DataType: DbDataType;

Description

The DataType property returns the type of data that could be contained in the data source field.

Example

Sub Main;

Var

MB: IMetabase;

DSInst: IDatasetInstance;

DSModel: IDatasetModel;

Fields: IDatasetModelFields;

Field: IDatasetModelField;

i: Integer;

Begin

MB:=MetabaseClass.Active;

DSInst:=MB.ItemById("Table_1").Open(Null) As IDatasetInstance;

DSModel:=DSInst.Dataset;

Fields:=DSModel.Fields;

Field:=Fields.Item(0);

i:=Field.DataType;

End Sub Main;

After executing the example, the "i" variable contains the type of the first field of data source presented as integer. The identifier of data source is Table_1.

See also:

IDatasetModelField