IStandardDimLevels.Remove

Syntax

Remove(Index: Variant): Boolean;

Parameters

Index. Level index.

Description

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

Example

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

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

See also:

IStandardDimLevels