IDimAttribute.DataType

Syntax

DataType: DbDataType;

Description

The DataType property returns type of dictionary attribute data.

Example

Executing the example requires that the repository contains a dictionary with the Dim_1 identifier.

Sub Main;

Var

MB: IMetabase;

DimModel: IDimensionModel;

DimAttrs: IDimAttributes;

DimAttr: IDimAttribute;

s: String;

Begin

MB := MetabaseClass.Active;

DimModel := MB.ItemById("Dim_1").Bind As IDimensionModel;

DimAttrs := DimModel.Attributes;

DimAttr := DimAttrs.Item(0);

Select Case (DimAttr.DataType As Integer)

Case 0: s := "NoDate";

Case 1: s := "String";

Case 2: s := "Integer";

Case 3: s := "Float";

Case 4: s := "DateTime";

Case 5: s := "Blob";

Case 6: s := "Boolean";

Case 7: s := "Date";

End Select;

End Sub Main;

After executing the example the "s" variable contains data type for the first dictionary attribute.

See also:

IDimAttribute