[Xerte] multi -dimensional arrays

Dave Burnett d_b_burnett at hotmail.com
Wed Oct 27 15:42:01 BST 2010


OK, where's the blunder? 

for (i = 0; i < tracking.length; i++) {
  reviewArray.push({}); // push new dimension into first level
  debug('ra ' + reviewArray.length); //returns 1 correctly
  for (j = 0; j < tracking[i].length; j++) {
    reviewArray[i].push({}); //push new dimension into first level dimension
    debug('ra i ' + reviewArray[i].length); //return undefined for each iteration


Dave
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101027/e0a1abe3/attachment.html


More information about the Xerte mailing list