IMetabase.MoveObject

Syntax

MoveObject(Info: IMetabaseObjectCopyInfo);

Parameters

Info - information for moving an object.

Description

The MoveObject method moves the specified object to the specified place.

Example

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:

IMetabase