On Sat, Sep 13, 2008 at 10:37 PM, Azadi Saryev <[EMAIL PROTECTED]> wrote: > the only time i remember a cfloop getting confused wa when it was inside > a cfoutput of another query and there was column name duplication in the > outer and inner queries. when i have a cfloop inside a cfoutput of > another query i usually set explicit vars for outer query's values i > need to use in the cfloop AND fully qualify the looped query vars as > #loopedqueryname.columnname# instead of using just #columnname#
Heh. You can get really anal too: loopedqueryname.columnname[loopedqueryname.currentrow] There's no way you'd get the wrong thing then. Course, that's overkill. I can't remember why, but sometimes, when you use loopedqueryname.columnname, it only uses the first value, and doesn't iterate through the recordset. heh. :D -- Intelligence is a moral category. Theodor Adorno ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312525 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4