Nope it would not overwrite.

CFPARAM works like this:

If the variable does not exist it will create it and set whatever default value you 
specify.  So
when the second CFPARAM is called it will NOT create the var and a set a value because 
it already
exists.

To reset the var use CFSET in place of the second CFPARAM in your example

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

----- Original Message -----
From: "Tony Schreiber" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 8:05 AM
Subject: CFPARAM Question


> Do subsequent CFPARAMS of the same variable overwrite each other? I
> thought so, but they don't seem to.
>
> <CFPARAM NAME="foo" DEFAULT="bar">
>
> . later ...
>
> <CFPARAM NAME="foo" DEFAULT="boo">
>
> If I check for foo it's still "bar" instead of "boo"...
>
> Is there a way to duplicate my intended behavior another way?
>
> Tony Schreiber, Senior Partner                  Man and Machine, Limited
> mailto:[EMAIL PROTECTED]                   http://www.technocraft.com
>
> http://www.simplemessageboard.com ___Free Forum Software for Cold Fusion
> http://www.is300.net ___________The Enthusiast's Home of the Lexus IS300
> http://www.digitacamera.com ______________DigitA Camera Scripts and Tips
> http://www.linklabexchange.com _____________Miata Link ECU Data Exchange
>
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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

Reply via email to