IDimIndexesInstance.PrimaryIndex

Syntax

PrimaryIndex: IDimIndexInstance;

Description

The PrimaryIndex property returns data of primary dictionary index.

Example

Sub Main;

Var

MB: IMetabase;

Dimen: IDimInstance;

Indxs: IDimIndexesInstance;

i: Integer;

Begin

MB:=MetabaseClass.Active;

Dimen:=MB.ItemById("D_TO").Open(Null) As 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 Main;

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