<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style>
<meta content="MSHTML 6.00.6000.17080" name="GENERATOR">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body class="hmmessage" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>reviewArray[i] is an object, not an array</div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF430123" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 27 October 2010 15:42<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] multi -dimensional arrays<br>
</font><br>
</div>
<div></div>
<div>OK, where's the blunder? <br>
<br>
for (i = 0; i < tracking.length; i++) {<br>
reviewArray.push({}); // push new dimension into first level<br>
debug('ra ' + reviewArray.length); //returns 1 correctly<br>
for (j = 0; j < tracking[i].length; j++) {<br>
reviewArray[i].push({}); //push new dimension into first level dimension<br>
debug('ra i ' + reviewArray[i].length); //return undefined for each iteration<br>
<br>
<br>
Dave<br>
</div>
</div>
</body>
</html>