ISSUE :
 
Profile photo
Submitted by Matt Hunker
on June 11th, 2011 at 10:26:55 EST

what is difference between "New" and "CreateObject" in VB6 and ASP?

I am revisiting some of classic ASP and VB6 code. I have a question on whats the difference between "New" keyword vs. "CreateObject" to instantiate object. Any suggestion please...


Profile photo
Replied by SBajra
on June 11th, 2011 at 10:33:16 EST
It all depends on how you want to create the object. I mean when you use "New" keyword is early binding and when you "CreateObject" is late binding in VB6 and classic ASP.

More detail on early binding vs late binding:
http://support.microsoft.com/kb/245115
Accepted Answer
Accepted
 Answer

Profile photo
Replied by Matt Hunker
on June 11th, 2011 at 12:31:56 EST
Thanks.