yeah i know about argumentcollection, but i like being able to call the function like this:
myobj.foo(form); just laziness on my part i guess.... (but it just looks nicer than myobj.foo(argumentcollection=form) !!!!!!!) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick McElhaney Sent: 27 January 2005 13:19 To: cfcdev@cfczone.org Subject: Re: [CFCDev] Composition and SQL On Thu, 27 Jan 2005 09:32:03 -0000, Kerry <[EMAIL PROTECTED]> wrote: > > I do this in generic cfcs: > <cfargument name="objargs" required="no" default="#arguments#"> > > This way, you can pass in all the (named) arguments seperately, and objargs > will populate itself, or you can pass in an object/form/struct, and it will > still work. > > What do you think, elegant solution or nasty hack? > Pretty neat trick. But there's a built in solution that works even better. :) See "argumentCollection" in the docs. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/buildi19.htm Patrick -- Patrick McElhaney 704.560.9117 http://pmcelhaney.blogspot.com ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org