Unique: Boolean;
The Unique property returns True if the index is unique.
Sub Main;
Var
MB: IMetabase;
DimModel: IDimensionModel;
Indexs: IDimIndexes;
Index: IDimIndex;
s: String;
Begin
MB:=MetabaseClass.Active;
DimModel:=MB.ItemById("D_TO").Bind As IDimensionModel;
Indexs:=DimModel.Indexes;
Index:=Indexs.Item(0);
If Index.Unique Then
s:="Unique";
Else
s:="Not unique";
End If;
End Sub Main;
After executing the example the "s" variable shows Unique if the first dictionary index is a unique one. Repository object identifier: D_TO.
See also: