You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In coding RAMP-TS scripts in JavaScript these code fragments are all standard and equivalent:
 
x = new Object();
x.a = 1;
x.b = "Hello";
 
-----------------------------------------
 
x = { a : 1, b : "Hello" )
 
-----------------------------------------
 
x = { "a" : 1, "b" : "hello" }  <========= which is the JavaScript format that was chosen for use in AJAX-JSON strings.  
 
-----------------------------------------
 
x = { };
x["a"] = 1;
x["b"] = "hello";
 
-----------------------------------------
 
x = new Object();
x["a"] = 1;
x["b"] = "hello";
 
-----------------------------------------
 
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/lansa050_2260.htm]

  • No labels