IUserDimBlocks.Clear

Syntax

Clear;

Description

The Clear method removes all blocks of calculated dictionary.

Example

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:

IUserDimBlocks