EARLY binding or LATE binding ?
"jason" wrote in message
om...
I've been in de Bruin's website and he recommends (for binding Outlook
from inside Excel) using early binding first, because its easier to
write code with, and then to switch your code to late binding, as
it'll stand the test of time better
A friend at work understands late binding but swears by early binding
Any opinions - or can both be advantageous in different situations?
Early binding generally provides better performance since the
type information is provided to the object code by the compiler.
With late binding the system has to make extra calls at run time
to get the type iformation for error checking etc.
The major advantage of late binding is that it allows
you to pass an argument choosing which type of object
to bind to. This is advantageous if there is more
than object which has similar methods and properties
and you need to select one or other at run time.
Keith
|