Clear;
The Clear method removes all indexes of a calculated dictionary.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
UsDim: IUserDimension;
UsDimInds: IUserDimIndexes;
Begin
MB:=MetabaseClass.Active;
MObj:=MB.ItemById("USER_DIM").Edit;
UsDim:=MObj As IUserDimension;
UsDimInds:=UsDim.Indexes;
UsDimInds.Clear;
MObj.Save;
End Sub Main;
After executing the example all the dictionary indexes are deleted. Calculated dictionary identifier: USER_DIM.
See also: