M
M. Fisher
Pardon my ignorance here...
I have created arrays such as:
var SDET_Lab130= new Array();
SDET_Lab130['SDET'] = new Array();
SDET_Lab130['SDET'][0] = [0,400,7,24431,25179,24919,1.09,base];
SDET_Lab130['SDET'][1] = [1,400,7,27729,28031,27877,0.34,11.87,rate
Improved];
SDET_Lab130['SDET'][2] = [0,450,7,24691,25194,24966,0.75,base];
SDET_Lab130['SDET'][3] = [1,450,7,27598,28090,27860,0.60,11.59,rate
Improved];
SDET_Lab130['SDET'][4] = [0,500,7,24725,25171,24967,0.74,base];
SDET_Lab130['SDET'][5] = [1,500,7,27556,27941,27795,0.52,11.32,rate
Improved];
Now first off is this legal? If so I am having trouble accessing the
elements of the array. Basically I have a function which takes in the
hash string, then I want to loop through using two nested loops to get
all the elements of all the arrays for a given hash string.
Seems that to go through an associative array you need a loop as such
first
for (i in uniqueID[selected]) {
I guess if that is the case how to I drill down further from here?
Thanks a lot in advance. Any help is greatly appreciated.
Marc
I have created arrays such as:
var SDET_Lab130= new Array();
SDET_Lab130['SDET'] = new Array();
SDET_Lab130['SDET'][0] = [0,400,7,24431,25179,24919,1.09,base];
SDET_Lab130['SDET'][1] = [1,400,7,27729,28031,27877,0.34,11.87,rate
Improved];
SDET_Lab130['SDET'][2] = [0,450,7,24691,25194,24966,0.75,base];
SDET_Lab130['SDET'][3] = [1,450,7,27598,28090,27860,0.60,11.59,rate
Improved];
SDET_Lab130['SDET'][4] = [0,500,7,24725,25171,24967,0.74,base];
SDET_Lab130['SDET'][5] = [1,500,7,27556,27941,27795,0.52,11.32,rate
Improved];
Now first off is this legal? If so I am having trouble accessing the
elements of the array. Basically I have a function which takes in the
hash string, then I want to loop through using two nested loops to get
all the elements of all the arrays for a given hash string.
Seems that to go through an associative array you need a loop as such
first
for (i in uniqueID[selected]) {
I guess if that is the case how to I drill down further from here?
Thanks a lot in advance. Any help is greatly appreciated.
Marc