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