Remove(Index: Variant): Boolean;
Index. Level index.
The Remove method removes dictionary level, index of which is passed by the Index parameter.
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: