View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0030263||Runner||General||Public||2018-11-29 11:17||2019-01-30 16:41|
|Reporter||Stewart Bishop||Assigned To||Russell Kay|
|Priority||Medium||Severity||C - General||Reproducibility||100%|
|Target Version||2.2.2||Fixed in Version||2.2.2|
|Summary||0030263: General: Array Accessors work differently between 1D and 2D arrays|
|Description||Within the sample project I make an array which has a nested array inside of it. I also make a 2D array with the same structure.|
If I use the array accessor on the 1D nested array it will give me back a json with the nested array rather than the value at that position I'd expect.
If I use the array accessor on the 2D array, it'll give me back the value as expected.
The manual states no difference between using this array accessor on a 1D or 2D array so I'd expect the code in the sample to give 10 both times.
|Steps To Reproduce||1) Run the sample|
|1.4 Found In|
|2.x Runtime Found In||220.127.116.113|
|2.x Runtime Verified In||18.104.22.1682|
ArrayAccessorTest.yyz (23,165 bytes)
a = 0;
a = ["Hello", "50Hello", "8.73Hello", [10, 50], [4.99, 8.73]];
// using 2D access on a 1D array should fail.
var t = a[@ 3, 0];
// var t = a[3, 0] DOES fail...
Stewart's issue is not a bug...
Mikes issue has been fixed.