> I've never used the loop index, and I don't think you should depend on it. > Not sure what documented behavior is, but if it isn't documented in a > specific way, it would be totally appropriate for it to go out of scope in > a future version (kinda surprised it doesn't) > > Instead, use your own counter var. >
Sorry mate, I strongly disagree with this. The index variable is * specifically* there to be used. Using an additional counter variable is just tautology. You say "if it isn't documented...", but it is. Clearly so: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-71aa.html I would potentially agree that using it outside the loop (ie: after the end of it), might not be a good idea, because some languages only maintain the index variable within the loop code. That said, CFML is not one of those languages. -- Adam ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354748 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

