CFARGUMENT can validate the data type being passed in and if it exists (as
well as give a default value). This copies most of the ability of the
CFPARAM tag. On the other hand, the new validation ability of CFPARAM does
not exist in CFARGUMENT (oversight?). 
Of course, you can write the same using functions, but....

I've told people in the past to use CFPARAM to validate the structure of
their data within a CFC method as a fast 'check'.

> Really, I don't think that cfparam is as useful inside CFC methods as
> it is inside CFM files.    I have mostly used <cfparam> to "declare"
> attributes to a custom tag or input values to an included file.  It
> makes sure that required variables exist, and for those that aren't
> required it can set default values.  It also makes sure that the
> values for those variables are of the right type.  The <cfargument>
> tag serves this purpose for parameters to function calls, removing the
> need to use <cfparam>.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197896
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to