Definately wrap a lock around those, and I would only run that block if 1 of the vars inside isn't defined (if 1 isn't then they all aren't....like when CF Server is restarted).
As far as CFPARAM goes.... You are correct in using it here....why write 3 lines of code when you can write 1 ;-) HTH Bryan Stevenson VP & Director of E-Commerce Development Electric Edge Systems Group Inc. p. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com ----- Original Message ----- From: "Earl, George" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 8:21 AM Subject: cfparam vs. cfif/isDefined/cfset > Here is my application.cfm file: > > <cfapplication name="appname" applicationtimeout=#CreateTimeSpan(2, 0, 0, > 0)#> > > <cfparam name="application.appnameroot" default="/appname"> > <cfparam name="application.includesDir" default="/appname/includes"> > <cfparam name="application.imagesDir" default="/appname/images"> > <cfparam name="application.menusDir" default="/appname/menus"> > <cfparam name="application.templatesDir" default="/appname/templates"> > <cfparam name="application.smapDir" default="/appname/smap"> > > Should I be locking these cfparam tags? Should I wrap them all in one lock > or should I lock each one individually? > > What is the difference between using cfparam tags as I have above and using > cfif with isDefined and cfset to accomplish the same thing? Is one method a > better practice than the other? > > Thanks! > > George > [EMAIL PROTECTED] > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

