Ok, this func doesn’t make sense, but I’m just using it as an example:
<cffunction name="blah">
<cfset var myFoo = 123>
<cfset var varNamePrefix = "my">
<cfset var bar = Evaluate("#varNamePrefix#Foo")>
<cfreturn bar>
</cffunction>
With CF9, I can use local["#varNamePrefix#Foo"]. Is there a way for CF7/8 to get rid of the Evaluate() without refactoring the whole thing with var local = structNew()?
Not by documented means. Pre-CF9 there is only getPageContext().getActiveFunctionLocalScope()