> In my reading, I came upon an example similar to this: > > <cfset qUsers = object.getallusers()> > > <cfoutput query="qUsers"> > ... > </cfoutput> > > > Would it be possible to do this instead: > > <cfoutput query="object.getallusers()"> > ... > </cfoutput>
Yes, I'm pretty sure it would work. That said, it might not work as efficiently. With some CF tags, evaluation might occur on every loop iteration, and so you'd call the getallusers method over and over unnecessarily. I don't know if this would be the case with CFOUTPUT, but you could test that. Also, creating another variable has very little cost, especially since queries are passed by reference. I'd probably just create the variable and leave it at that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:319101 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4