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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279104
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to