Prob is that CF doesn't set the datatype of a variable on creation (as in other languages). It determines it when it is referenced or tested. Guess it's good in some ways and bad in others.
-----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 04 April 2003 15:29 To: CF-Talk Subject: cfparam Anyone else thing cfparam would be more useful when if using it like this... <cfparam name="URL.id" default="0" type="numeric"> ...was the same as using... <cfif NOT IsDefined("URL.id") OR NOT IsNumeric(URL.id)> <cfset URL.id = 0> </cfif> ...so the param kicks in if URL.id isn't defined OR if it isn't a number? I'd never really used the type attribute in cfparam before and I was hoping this was the way it worked. Oh well :O( Adrian Lynch Web Developer Thoughtbubble Ltd ---------------------- United Kingdom http://www.thoughtbubble.net Ph: +44 (0) 20 7387 8890 ---------------------- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s) . Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0) 20 7387 8890 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

