> You will get a 'method cannot be found' if you are passing invalid > arguments too it, because CF searches for a method with matching > arguments. You could have 2 functions: > > New(int) > > And > > New(int, int)
Do you mean one function with two arguments, one of which that is not required? You cannot overload methods in CF, and will encounter an error that you cannot define a method with the same name twice if you attempt it. Rich ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288479 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4