I want to modify the query within the tag. If the query were being passed by reference then I would think it wouldn't be necessary to reference it using the CALLER scope.
----- Original Message ----- From: "Adrian Lynch" <[EMAIL PROTECTED]> To: "cf-talk" <cf-talk@houseoffusion.com> Sent: Tuesday, October 07, 2008 3:24 PM Subject: RE: Passing a query to a CFML tag > Nope, it's by reference. > > I'd only set it to CALLER if you were modifying it. Do you really mean > that > you want to just use the query in the tag? > > I pass it in as: > > <cf_mytag query="#myQuery#"> > > and then use it with: > > <cfdump var="#ATTRIBUTES.myQuery#"> > > Works nicely. > > Adrian > > Building a DB of errors at http://cferror.org/ > > -----Original Message----- > From: Jim McAtee > Sent: 07 October 2008 21:48 > To: cf-talk > Subject: Passing a query to a CFML tag > > > Are queries passed into CFML tags by reference or by value? From what > I'm > seeing, it looks like by value. > > <cf_mytag query="#myqery#"> > > If that's the case, is it necessary then to just pass the name of the > query and then use "caller.attributes.query"? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313571 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4