It's more a matter of style and what is going on with the CFC. If you
are invoking multiple methods on a CFC, it's better to create an
instance of it. However, once you do that, you can still use cfinvoke,
or you can use object notation. Another reason to use an object instance
is when you have state information persisting from call to call.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 10:44 AM
> To: CF-Talk
> Subject: CFC Best methods?
> 
> 
> 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
> 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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

Reply via email to