Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Types of Object Binding? 1

Status
Not open for further replies.

BlackKnight

Programmer
Oct 18, 2000
348
US
Hi folks,

What are the types of object binding. Thanx in advance.

Have a good one!
BK


[sig][/sig]
 
Early and Late Binding
Binding refers to the point at which the system recognizes references to objects

You can declare object variable in three ways

1. Dim obj as Object
2. Dim obj as New myObj
3. Dim obj as myObj

The first one uses Late binding and is the lest prefered, the other two use early binding. Not all objects support the "As New" keyword. You can tell what kind of binding you have by whether VB's Auto Syntax Check feature gives you the Objects properties/Methods.

This has it's roots in COM, something to do with the vTable look up, something I know little about.

Hope this helps
Collin [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top