IDimIndexesInstance.PrimaryIndex

Syntax

PrimaryIndex: IDimIndexInstance;

Description

The PrimaryIndex property returns data of primary dictionary index.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Dimen: IDimInstance;
    Indxs: IDimIndexesInstance;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    Dimen:=MB.ItemById("D_TO").Open(NullAs IDimInstance;
    Indxs:=Dimen.Indexes;
    If Indxs.Count<>0 Then
        If Indxs.PrimaryIndex<>Null Then
            i:=Indxs.PrimaryIndex.Index.Attributes.Count;
        End If;
    End If;
End Sub UserProc;

After executing the example the "i" variable shows the number of attributes by which the primary dictionary index is created. Repository object identifier: D_TO.

See also:

IDimIndexesInstance