RE: IsDefined('') v. cfset

2001-04-12 Thread Will Swain
Subject: RE: IsDefined('') v. cfset So would cfparam be cheaper than just doing a cfset anyway - say for an Application variable whose value is constant? -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: 11 April 2001 17:27 To: CF-Talk Subject: RE: IsDefined('') v. cfset

RE: IsDefined('') v. cfset

2001-04-12 Thread Bill Davies
Thanks -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: 12 April 2001 11:01 To: CF-Talk Subject: RE: IsDefined('') v. cfset I'm not sure. I understood that for such variables you should use cfparam, but I guess in reality there would probably be little

Re: IsDefined('') v. cfset

2001-04-12 Thread Jon Hall
ference the individual variables throughout your application with #application.globalVars.dsn#. This can be made even faster with the use of cfscript too. jon - Original Message - From: "Bill Davies" [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Wednesday

IsDefined('') v. cfset

2001-04-11 Thread Bill Davies
Anyone have any idea whether an IsDefined('') 'costs' more than a cfset? i.e. Which is more work for the server - to test for the existence of a variable (and create it if it doesn't exist) or create or overwrite it anyhow? Thanks. Bill Davies

RE: IsDefined('') v. cfset

2001-04-11 Thread Bob Silverberg
of a variable, and I'm NOT going to create it if it doesn't exist. Bob -Original Message- From: Bill Davies [mailto:[EMAIL PROTECTED]] Sent: April 11, 2001 10:12 AM To: CF-Talk Subject: IsDefined('') v. cfset Anyone have any idea whether an IsDefined('') 'costs' more than a cfset? i.e. Which

RE: IsDefined('') v. cfset

2001-04-11 Thread Will Swain
To: CF-Talk Subject: RE: IsDefined('') v. cfset This doesn't answer your question directly, but if you are really going to test for the existence of a variable, and create it if it doesn't exist, I'd suggest using cfparam which will accomplish both of those things in one step. I only used IsDefined

RE: IsDefined('') v. cfset

2001-04-11 Thread Bill Davies
So would cfparam be cheaper than just doing a cfset anyway - say for an Application variable whose value is constant? -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED]] Sent: 11 April 2001 17:27 To: CF-Talk Subject: RE: IsDefined('') v. cfset Yup, CFPARAMs in your