LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Late Binding or Late Anything


Gentlemen,
Leith, JMB, trooper665,

Thx so much for the in depth explanation of this subject. Its more than
i hoped for.

Thx Very much
Dave
Leith Ross Wrote:
Hi Piranha,

It's a term relating to assigning object variables. Here is some info
from the Microsoft Developers Network Site (MSDN) that should help
you.

The Visual Basic compiler performs a process called binding when an
object is assigned to an object variable. An object is early bound when
it is assigned to a variable declared to be of a specific object type.
Early bound objects allow the compiler to allocate memory and perform
other optimizations before an application executes.

By contrast, an object is late bound when it is assigned to a variable
declared to be of type Object. Objects of this type can hold references
to any object, but lack many of the advantages of early-bound objects.

You should use early-bound objects whenever possible, because they
allow the compiler to make important optimizations that yield more
efficient applications. Early-bound objects are significantly faster
than late-bound objects and make your code easier to read and maintain
by stating exactly what kind of objects are being used. Another
advantage to early binding is that it enables useful features such as
automatic code completion and Dynamic Help because the Visual Studio
.NET integrated development environment (IDE) can determine exactly
what type of object you are working with as you edit the code. Early
binding reduces the number and severity of run-time errors because it
allows the compiler to report errors when a program is compiled.

Note Late binding can only be used to access type members that are
declared as Public. Accessing members declared as Friend or Protected
Friend results in a runtime error.

Hope this answers your questions,



--
Piranha
------------------------------------------------------------------------
Piranha's Profile: http://www.excelforum.com/member.php...o&userid=20435
View this thread: http://www.excelforum.com/showthread...hreadid=476077



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding examples of binding excel application HeatherO Excel Programming 13 March 17th 05 08:19 AM
Late Binding help, Please Bud Dean Excel Programming 5 September 24th 04 04:31 AM
Late Binding Todd Huttenstine[_3_] Excel Programming 3 April 30th 04 11:01 AM
Late Binding Cindy Excel Programming 11 April 23rd 04 03:34 PM
DAO Late Binding? Sharqua Excel Programming 2 January 4th 04 02:05 AM


All times are GMT +1. The time now is 09:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"