I'm still not understanding what you're saying about using the cached version.
Are you saying that if I run a CFC method called getCart() and it returns a query called variables.theCart, I should be able to use that query on additional CFCs? Dave Cordes Macromedia Certified Professional 636-265-0094 (Office) 636-578-4235 (Mobile) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Raymond Camden Sent: Thursday, October 09, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Query Reuse in Multiple CFCs > So in my getCart() method how would I return the query? > > <CFRETURN getCart> OR <CFRETURN VARIABLES.getCart> If your logic is, if my cached version doesn't it, make it, then you always simply return the cached version, variables.theCart (I don't use variables with the same name as methods) > Is there a difference? Yes. > > And in my other method called setOrderWeight() could I just > use CFLOOP to loop over the query like this? > > <CFLOOP QUERY="getCart"> > ... > </CFLOOP> No, you would want to use variables.getCart, although getCart would work fine as well. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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/[EMAIL PROTECTED]
