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