IUserDimIndexes.PrimaryIndex

Syntax

PrimaryIndex: IUserDimIndex;

Description

The PrimaryIndex property returns the object containing primary index of the calculated dictionary.

Example

Sub Main;

Var

MB: IMetabase;

UsDim: IUserDimension;

UsDimInds: IUserDimIndexes;

UsDimIndex: IUserDimIndex;

s: String;

Begin

MB:=MetabaseClass.Active;

UsDim:=MB.ItemById("USER_DIM").Bind As IUserDimension;

UsDimInds:=UsDim.Indexes;

If UsDimInds.Count<>0 Then

UsDimIndex:=UsDimInds.PrimaryIndex;

If UsDimIndex<>Null Then

s:=UsDimIndex.Name;

End If;

End If;

End Sub Main;

After executing the example the "s" variable contains the primary index ID, if it exists. Calculated dictionary identifier: USER_DIM.

See also:

IUserDimIndexes