<CFparm> only writes to the variable if the variable does not exist, where
as <CFSet> overwrites the variable with a new value regardless of if it
exists.

EX:

<cfparam name="form.checkbox" default="0">

is the same in principle as:

<cfif NOT isDefined("")>
        <cfset form.checkbox = 0>
</cfif>

HTH,
Duane

-----Original Message-----
From: Fuon See Tu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 4:49 PM
To: CF-Talk
Subject: CFPARAM vs. CFSET


Hey guys i still don't understand the difference between CFPARAM and CFSET.
anyone got a working concept?  i see no use for CFPARAM :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to