Steve Bryant wrote, On 3/8/2007 11:14 AM:
At 10:43 AM 3/8/2007, Tom Chiverton wrote:
On Thursday 08 Mar 2007, Steve Bryant wrote:
> needs, you can use argumentCollection to pass in the whole form
> structure - with each field being used as a separate argument.
But you must then never change a form field name - you don't know if
it's
being used by the CFC or not.
Definitely a good point. Any time that you use a shortcut like that
you are creating a non-documented dependence. Certainly, using named
arguments does a better job of documenting the dependencies (and
allowing you to use different field names than your argument names).
I've had so much trouble with differing form field names vs.
correspondingly different names (say for an update), I'm not sure why
anyone would want to have different form field names...=)
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]