I like Adrian's suggestion.  If the cfparam check fails, then use the
default.  Why should we have to "reset" the default a second time?  It's
not necessary.

M!ke 

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 3:17 PM
To: CF-Talk
Subject: RE: [OT] Future CF Features

I had a similar idea ages ago except I think that the setting of the var
should still happen if the type check fails.

<cfset myID = "not an ID, a string!">

<cfparam name="myID" type="numeric" default="0">

<!--- By here myID would be 0 and no error thrown --->

Adrian

P.S. Did you get my last few emails Mike? I sent the files and a
follow-up email but no reply.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232262
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to