IUserDimIndex.Attributes

Syntax

Attributes: IUserDimIndexAttributes;

Description

The Attributes property returns an object containing the collection of attributes on which the index is based.

Example

Sub UserProc;
Var
    MB: IMetabase;
    UsDim: IUserDimension;
    UsDimInds: IUserDimIndexes;
    UsDimIndex: IUserDimIndex;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;
    UsDimInds:=UsDim.Indexes;
    If UsDimInds.Count<>0 Then
        UsDimIndex:=UsDimInds.Item(0);
        i:=UsDimIndex.Attributes.Count;
    End If;
End Sub UserProc;

After executing the example the "i" variable shows the number of attributes by which the first dictionary index is created. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimIndex