An annoying quirk for scoping nazis at that. This exact thing bit one of us here this week.
On 5/24/07, Sean Corfield <[EMAIL PROTECTED]> wrote: > On 5/24/07, Bryan Stevenson <[EMAIL PROTECTED]> wrote: > > Sounds normal to me (if I'm reading you right), but post your code and we'll > > know for sure ;-) > > > > Typically if you need a value from an outer loop in an inner loop, you MUST > > set > > a var in the outer loop to be used in the inner loop....if not you'll get > > what > > you seem to have described. > > Agreed. It looks like odd behavior on the surface but CF has pretty > much always behaved that way as far as I know. > > <cfloop query="outer"> > .... > <cfset somevar = outer.somecol /> > <cfloop query="inner"> > .... reference somevar ... > </cfloop> > .... > </cfloop> > > You can't reference outer.somecol directly inside the inner loop, you > have to use the intermediate variable even if the column names don't > conflict. Just one of CF's quirks... > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279106 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

