[thelist] CFSET vs CFParam

Steven Wood steve.wood at serviceengine.com
Fri Oct 20 15:57:10 CDT 2000


> For all intents and purposes, both tags set a value to a variable.
> I'm wondering if someone could offer me some insight as to why I
> might choose one over another.

In all the CF pages that I've written, I've never, ever used the <cfparam>
tag.  Maybe I'm missing something important, but I do my CYA'ing by always
checking to see if variables are defined before referencing them... unless
I'm <cfset>ing the variable directly above the block in which it is
referenced.

According to the responses that you got from your original question, I guess
I'm probably coding more <cfif> statements than I might actually need.

Steven Wood
Dynamic Application Specialist
ServiceEngine.com, Inc.
The Internet Utility for Customer Service
203.402.1151
203.925.8768 Fax
http://www.ServiceEngine.com





More information about the thelist mailing list