My preference is to create an instance (using the cfobject tag ) and then call individual methods using the cfinvoke tag.
Why do I like this? Because then I do not have the overhead of creating the instance for every method I call. I also have the ability to perform state management between method calls. If you are only calling a single method on a page, then there is no reason for creating the instance of it at first. At 07:43 AM 8/26/2002 -0700, you wrote: >I Just read ben Forta's article on CFCs: > >http://www.macromedia.com/desdev/mx/coldfusion/extreme/bforta_cfc.html > >I have a couple of questions: > >Ben shows 2 methods of using a CFC > > <cfinvoke.... > > <cfobject... > >Which is preferred, and why? > >The docs show several methods of passing parameters to a cfc, which is >preferred and why. > >TIA > >Dick > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

