cfscript: optional arguments in function calling

2005-10-03 Thread wolf2k5
in the call (only if the optional variable exists). As you can imagine, when there are a lot of optional arguments, I need to duplicate a lot of code with CFScript. Is there a better way of handling optional arguments in function calling with CFscript? Thanks in advance

Re: cfscript: optional arguments in function calling

2005-10-03 Thread Ryan Guill
). As you can imagine, when there are a lot of optional arguments, I need to duplicate a lot of code with CFScript. Is there a better way of handling optional arguments in function calling with CFscript? Thanks in advance

Re: cfscript: optional arguments in function calling

2005-10-03 Thread Raymond Camden
in the call (only if the optional variable exists). As you can imagine, when there are a lot of optional arguments, I need to duplicate a lot of code with CFScript. Is there a better way of handling optional arguments in function calling with CFscript? Thanks in advance

Re: cfscript: optional arguments in function calling

2005-10-03 Thread wolf2k5
On 10/3/05, Raymond Camden [EMAIL PROTECTED] wrote: Don't forget you can use argumentCollection to dynamically pass attributes to a CFC method or UDF. That would let you use cfscript if you want to. argumentCollection for CFCs/UDFs works the same as attributeCollection for custom tags.

Re: cfscript: optional arguments in function calling

2005-10-03 Thread Joe Eugene
I would rather have the method(s) hanlde the logic than the excution code pass optional arguments. myCFC.myMethod(form); Let the method handle all the checking and call other methods if needed. Joe On 10/3/05, wolf2k5 [EMAIL PROTECTED] wrote: On 10/3/05, Raymond Camden [EMAIL PROTECTED]