Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Which is better, CreateObject or Server.CreateObject ?


Message #1 by Teng Fong SEAK <tfseak@f...> on Fri, 26 Jul 2002 16:24:57 +0200
To create an instance of object, we could use either VBScript's CreateObject
or Server.CreateObject, but which is better / faster / safer / more adequate
? 
 
SEAK Teng-Fong
FuturMaster
Tel : +33 (0) 1.46.08.05.96
Fax : +33 (0) 1.46.08.03.88
 

Message #2 by "Adrian Forbes" <adrian.forbes@n...> on Fri, 26 Jul 2002 15:36:07 +0100
http://www.aspfaq.com/show.asp?id=2336

-----Original Message-----
From: Teng Fong SEAK [mailto:tfseak@f...]
Sent: Friday, July 26, 2002 3:25 PM
To: ASP components
Subject: [asp_components] Which is better, CreateObject or
Server.CreateObject ?


To create an instance of object, we could use either VBScript's CreateObject
or Server.CreateObject, but which is better / faster / safer / more adequate
?

SEAK Teng-Fong
FuturMaster
Tel : +33 (0) 1.46.08.05.96
Fax : +33 (0) 1.46.08.03.88




%%email.unsub%%


Message #3 by "Johnson, Israel" <IJohnson@R...> on Fri, 26 Jul 2002 11:05:55 -0400
Server.CreateObject would mainly apply when you are coding in a server
environment like ASP.  CreateObject is used when coding directly in VBScript
in a script host environment.  

To compare the two, CreateObject would be faster because the Windows Host
environment interprets faster than the Server environment on the web.

-----Original Message-----
From: Teng Fong SEAK [mailto:tfseak@f...] 
Sent: Friday, July 26, 2002 10:25 AM
To: ASP components
Subject: [asp_components] Which is better, CreateObject or
Server.CreateObject ?


To create an instance of object, we could use either VBScript's CreateObject
or Server.CreateObject, but which is better / faster / safer / more adequate
? 
 
SEAK Teng-Fong
FuturMaster
Tel : +33 (0) 1.46.08.05.96
Fax : +33 (0) 1.46.08.03.88
 


 
---
You are currently subscribed to asp_components as: ijohnson@r... To
unsubscribe send a blank email to %%email.unsub%%


  Return to Index