DataType: DbDataType;
The DataType property shows data type for attribute of a calculated dictionary.
Sub Main;
Var
MB: IMetabase;
UsDim: IUserDimension;
UsDimAts: IUserDimAttributes;
UsDimAttr: IUserDimAttribute;
i: Integer;
Begin
MB:=MetabaseClass.Active;
UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
UsDimAts:=UsDim.Attributes;
UsDimAttr:=UsDimAts.Item(0);
i:=UsDimAttr.DataType;
End Sub Main;
After executing the example the "i" variable contains type of data of the first attribute of calculated dictionary, converted to integer. Calculated dictionary identifier: USER_DIM.
See also: