MoveObject(Info: IMetabaseObjectCopyInfo);
Info - information for moving an object.
The MoveObject method moves the specified object to the specified place.
Sub Main;
Var
MB: IMetabase;
CInfo: IMetabaseObjectCopyInfo;
Begin
MB:=MetabaseClass.Active;
CInfo:=MB.CreateCopyInfo;
CInfo.Destination:=MB.Root;
CInfo.Source:=MB.ItemById("TestObj");
MB.MoveObject(CInfo);
End Sub Main;
After executing the example an object with the TestObj identifier is moved to the root.
See also: