Early Binding

Early binding is the most efficient method of accessing an ActiveX component. This is because the reference to the Type Library for the component can be compiled into your project, giving your project an almost instant navigational path to the properties, methods, and events of the component, and allowing memory to be allocated based on the type library. To provide early binding for a component, you must use the References dialog to add a reference to the object to your project. You can then use either of two methods of instantiating the object:

Dim oObjVar As New myClass or:

Dim oObjVar As myClass Set oObjVar = New myClass

Was this article helpful?

0 0

Post a comment