IDimIndexes.PrimaryIndex

Syntax

PrimaryIndex: IDimIndex;

Description

The PrimaryIndex property returns structure of primary dictionary index.

Example

Sub UserProc;
Var
    MB: IMetabase;
    DimModel: IDimensionModel;
    Indexs: IDimIndexes;
    Index: IDimIndex;
    i: Integer;
Begin
    MB:=MetabaseClass.Active;
    DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;
    Indexs:=DimModel.Indexes;
    Index:=Indexs.PrimaryIndex;
    If Index<>Null Then
        i:=Index.Key;
    End If;
End Sub UserProc;

After executing the example the "i" variable shows key of primary dictionary index if this index is created. Repository object identifier: D_TO.

See also:

IDimIndexes