AttachObject Method

Object List Next Object

Defined By:
ObjectTools

Description:

Moves an object into the current module. This operation is also called "attaching" the object to that module.

Declaration:

Sub AttachObject(ByVal o As Object)

Details:

Obj is detached from the module that currently contains it, and is attached to the current module (referenced by ModuleManager.CurrentModule).

If the object changes modules as a result of invoking AttachObject, and has a method defined:

Sub Attach()

then that method is invoked on the object after the attach is complete. If the object specified is already in the current module, no action is taken, and the Attach method is not invoked.

See Also:

AttachObjectToModule