Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

coldfusion object v10 vs. v9

This piece of code works on CF10, but NOT on CF9. Can anyone give me insight as to why?

The CF9 ERROR reads:

Invalid CFML construct found on line 2 at column 18.
ColdFusion was looking at the following text:
{

The CODE:

<cfscript>
CompanyobjData = {
  'CustomerID' : 'a',
  'CUSTOMERNAME1' : 'b',
  'CUSTOMERADDRESS1' : 'c',
  'CUSTOMERADDRESS2' : 'd',
  'CITY' : 'e',
  'ST' : 'f',
  'ZIP' : 'g',
  'PHONE' : 'h',
  'DEFAULTTERM' : 'i'
};
</cfscript>
<cfdump var="#CompanyobjData#" >
like image 627
j-p Avatar asked May 21 '13 16:05

j-p


1 Answers

The : separator is only supported from CF10, use = signs instead.

like image 157
BKK Avatar answered Sep 23 '22 00:09

BKK