Shrug ... you can just as easily accept a struct as an argument, calling it something like arguments.submittedValues, and pass the form scope to the function that way.

someService.processMyForm(form)

<cffunction name="processMyForm">
    <cfargument name="submittedValues">
 ...

Phillip Senn wrote:
Someone recently asked if passing the form scope was a best practice.
I found an interesting method called ArgumentCollection, but I don't
know very much about it.

Q: If you have a ton of arguments, is using ArgumentCollection the best
practice?


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]


  


--


Aria Media Sagl
CP 234
6934 Bioggio
Switzerland
www.aria-media.com



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to