Answered
Invalid CFML construct when using cf8
how come this only works in cf9:
allOrders = XmlSearch(xmlFeed, "ROOT/Batch");
13 : var final = arrayNew(1);
14 : for( var i = 1 ; i <= arraylen(allOrders); i = i + 1)
15 : {
how come this only works in cf9:
allOrders = XmlSearch(xmlFeed, "ROOT/Batch");
13 : var final = arrayNew(1);
14 : for( var i = 1 ; i <= arraylen(allOrders); i = i + 1)
15 : {
Because all VAR statements need to be @ the top of the method in CF8.
--
Adam
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.