I use cfparam for a number or reasons:

It helps avoid errors by cfparam all your varaibles so they will always be
defined.

I also saves the hasle of having to do something like this:

<cfif not isdefined("url.var")>
<cfset url.var=0>
</cfif>

instead use:

<cfparam name="url.var" default=0>

Which will do the same thing.

Hope that helps.

Rick

-----Original Message-----
From: Eric Fickes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 15, 2000 5:32 PM
To: CF-Talk
Subject: CFPARAM or CFSET


Could anybody school me in the difference between using CFPARAM and CFSET.
I see CFPARAM all the time, but the little documentation that I've seen
about CFPARAM makes it sound just like CFSET.

E
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to