IStandardDimLevels.Remove

Syntax

Remove(Index: Variant): Boolean;

Parameters

Index. Level index.

Description

The Remove method removes dictionary level, index of which is passed by the Index parameter.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Dim: IStandardDimension;

DimLevels: IStandardDimLevels;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("TAB_DIM").Edit;

Dim:=MObj As IStandardDimension;

DimLevels:=Dim.Levels;

DimLevels.Remove(DimLevels.Count-1);

MObj.Save;

End Sub Main;

After executing the example the last level of dictionary is removed. Table dictionary identifier: TAB_DIM.

See also:

IStandardDimLevels