On Wed, 1 Dec 2004 10:20:27 +1100, Paul Wilson  wrote:

> <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.
> 

Generally in the CFC, I list the required arguments first and then the
optional ones, primarily so I can use the obj.testmethod() syntax. 
So, I'd suggest re-arranging the order of the arguments in your CFC. 
This may require altering the calls to that method in other pages, of
course.

Scott

-- 
-----------------------------------------
Scott Brady
http://www.scottbrady.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185754
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