This content has been marked as final. Show 4 replies
you could store those arguments in a struct...and store the struct in the application or session scope (depending on usage).
pass the struct in as "argumentcollection".
let's say your struct is in the application scope as 'myArgumentsStruct'.
<cfset myVar = myCFCInstance.myFunction(argumentcollection=application.myArgumentStruct) />
in the function itself, each key in the argumentcollection structure becomes a distinct argument.
I have never ever tried anything like this and I have no idea if it will
work. But feel free to give it a try.
Awesome, just what I was looking for. Thanks! =)
> I have never ever tried anything like this and I have no idea if it will
> work. But feel free to give it a try.
Bet ya five quid it doesn't ;-)