cCompositeControls.regRef Method


Adds a Composite Controls object reference to the global object references collection.

Syntax

object.regRef(obj)

object A reference to a cCompositeControls class instance.

Parameters

Name Required / Optional Data Type Description
obj Required Object An ActiveX or Composite Controls object which is to be registered in the global references collection.

Remarks

Objects are first tested for a Tag property. If found, value of Tag property is used as the key. Tag property value is set to the current SESSION_ID value concatenated with the object's memory address.

Objects which do not have a Tag property are registered under the memory address obtained using the ObjPtr() function. Objects with multiple interfaces may perform unreliably.

Last edited Dec 22, 2010 at 1:22 AM by vba_junkie, version 1

Comments

No comments yet.