[AccessD] Referencing

Jim DeMarco Jdemarco at hshhp.org
Tue Apr 29 09:25:34 CDT 2003


Joe,

There was a recent thread on this but in a nutshell, many developers use the reference to get the IntelliSense during development then remove the reference and use CreateObject when finished.  In fact someone posted some neat code using compiler directives so you can create objects either way without changing your code.  I think you might use CreateObject when you want the ability to trap an error if the library is not installed on a user's PC.

HTH,

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Joe Rojas [mailto:JRojas at tnco-inc.com]
Sent: Tuesday, April 29, 2003 10:19 AM
To: 'accessd at databaseadvisors.com'
Subject: [AccessD] Referencing


Hi All,

All the examples I have seen that use the FileSystemObject always uses code
similar to: Set fso = CreateObject("Scripting.FileSystemObject")

Is there and advantage in doing this as compared to making reference to
Microsoft Scripting Runtime and using code like: Dim fso as
Scripting.FileSystemObject

I found the later to be easier to use because of such features as auto
complete and the listing of methods and parameters.

Thanks,
Joe Rojas




This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the AccessD mailing list