Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Upgrade to CF10 and App is Broken

$
0
0

Thanks for the suggestion.  I ran it, but there are no specific errors. However, there are 240 pages that are using a local. var and that seems to have gone away in 10.

 

In ColdFusion9 LOCAL is a reserved word and built-in scope now. This means that Variables and structures should not be named as LOCAL.Naming a structure or array LOCAL may produce data discrepanies.

 

There is miles of code like this ...

{

65:                             for(local.i=1; local.i lte ArrayLen(_columns[arguments.column]); local.i++)

66:                             {

67:                                  local.module = StructNew();

68:                                  local.module.id = _columns[arguments.column][local.i];

 

Actually, 2500 instances of the local var.  I didn't write this. 

 

Do you have a suggestion for what to change that to? 

 

Or can I just change it to somethjng like _local?

 

Thanks for the help!


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>