Show contents 

Dimensions > Dimensions Assembly Interfaces > IUserDimBlocks > IUserDimBlocks.Clear

IUserDimBlocks.Clear

Syntax

Clear;

Description

The Clear method removes all blocks of calculated dictionary.

Example

Sub UserProc;
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 UserProc;

After executing the example, all the dictionary blocks are deleted. Calculated dictionary identifier - USER_DIM.

See also:

IUserDimBlocks