IUserDimIndex.Unique

Syntax

Unique: Boolean;

Description

The Unique property determines whether the index is unique.

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.Item(0);

If UsDimIndex.Unique Then

s:="Unique";

Else

s:="Not unique";

End If;

End If;

End Sub Main;

After executing the example the "s" variable shows Unique if the first dictionary index is a unique one. Calculated dictionary identifier: USER_DIM.

See also:

IUserDimIndex