Dan, There are a lot of fixes coming for the local scope in the next updater, as there are some serious problems with the local scope in ColdFusion 9.
On Fri, Apr 30, 2010 at 5:08 AM, Dan Crouch <[email protected]> wrote: > > We are having all kinds of issues with the local scope in converting our > application over to CF9. > > I have a few variables in the local scope named Filter_1, Filter_2, etc.. > > So I am looping through a counter to see if they exist like this (loop > excluded). > > <cfif isDefined("local.Filter_#LoopCount#")> > > The problem is that it never finds them. I can replace the #loopcount# with > a number and it will work. I can also put the local scope inside of a > different scope, Request for example, and it does work. So the following > does work: > > <cfset request.newLocal = local> > <cfif isDefined("request.newlocal.Filter_#loopcount#")> > > Why in the world can it find it just fine in something other than Local? > This runs fine in CF8, by the way. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333276 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

