Show contents 

Dimensions > Dimensions Assembly Interfaces > ICustomDimAttribute > ICustomDimAttribute.DataType

ICustomDimAttribute.DataType

Syntax

DataType: DbDataType;

Description

The DataType property determines attribute data type.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Cube: IStandardCube;
    CustDim: ICustomDimension;
    CustAtrs: ICustomDimAttributes;
    CustAtribut: ICustomDimAttribute;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Cube:=MB.ItemById("CUBE_1").Bind As IStandardCube;
    CustDim:=Cube.FactDimension.Dimension As ICustomDimension;
    CustAtrs:=CustDim.Attributes;
    CustAtribut:=CustAtrs.Item(0);
    i:=CustAtribut.DataType;
End Sub UserProc;

After executing the example the "i" variable contains type of data stored in the first attribute of fact dimension converted to integer. Cube identifier: CUBE_1.

See also:

ICustomDimAttribute