IDimSelectionSchema.Clear

Syntax

Clear;

Description

The Clear method removes all primitives from dictionary selection schema.

Example

Sub Main;

Var

MB: IMetabase;

ObjDesc: IMetabaseObjectDescriptor;

DimSelSchema: IDimSelectionSchema;

MObj: IMetabaseObject;

Begin

MB:=MetabaseClass.Active;

ObjDesc:=MB.ItemById("TAB_DIM");

If ObjDesc.Children.Count<>0 Then

If ObjDesc.Children.Item(0).ClassId=1030 Then

MObj:=ObjDesc.Children.Item(0).Edit;

DimSelSchema:=MObj As IDimSelectionSchema;

DimSelSchema.Clear;

MObj.Save;

End If;

End If;

End Sub Main;

After executing the example all the primitives of the first schema of dictionary selection are removed. Dictionary identifier: TAB_DIM.

See also:

IDimSelectionSchema