|
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] 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] |
- [CFCDEV] ArgumentCollection Phillip Senn
- Re: [CFCDEV] ArgumentCollection Sammy Larbi
- RE: [CFCDEV] ArgumentCollection Dave Watts
- Re: [CFCDEV] ArgumentCollection Brian Rinaldi
- Re: [CFCDEV] ArgumentCollection Barry Beattie
- Re: [CFCDEV] ArgumentCollection Nando
- Re: [CFCDEV] ArgumentCollection Aaron DC
- Re: [CFCDEV] ArgumentCollection Sammy Larbi
- Re: [CFCDEV] ArgumentCollection Sammy Larbi

