I'm using createObject to invoke a CFC and one of the methods in the CFC takes a number of arguments, all numeric but not all required. In the CFC I have some conditional statements that do various things based on the arguments passed in.
<cfif arguments.arg neq "">do this</cfif> Firstly is it a good idea to do this in a CFC? And secondly, how can I pass is the only the arguments required .e.g. <cfset result = obj.testmethod(0,1, ,10) The third argument is not required but this will throw an error. This situation doesn't arise when you use cfinvoke as you can simply miss out the cfinvokeargument tag. Thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185753 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