MoveObject(Info: IMetabaseObjectCopyInfo);
Info. Information to execute object moving.
The MoveObject method moves the specified object to the specified position.
Executing the example requires that the repository contains an object with the TestObj identifier.
Add a link to the Metabase system assembly.
Sub UserProc;
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 UserProc;
After executing the example an object with the specified identifier is moved to the root.
See also: