cf-talk  

RE: Don't leave stuff lying around

Dave Watts
Wed, 22 May 2002 09:09:19 -0700

> <cfparam name="variable" type="numeric">
> will this automatically set the default value to "0" 
> even though you aren't specifying it? should it be 
> <cfparam name="variable" type="numeric" default="0">?

If you omit the DEFAULT attribute, CFPARAM will throw an exception if the
variable doesn't already exist. Sometimes, that's the behavior that you
might want.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
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