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
).
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
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
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.
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]
5 matches
Mail list logo