Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimAttribute > IUserDimAttribute.DataType

IUserDimAttribute.DataType

Syntax

DataType: DbDataType;

Description

The DataType property shows data type for attribute of a calculated dictionary.

Example

Sub UserProc;
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 UserProc;

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:

IUserDimAttribute