[Xerte] multi -dimensional arrays
Dave Burnett
d_b_burnett at hotmail.com
Thu Oct 28 11:40:07 BST 2010
Doh.
AW continues to skulk in the corners of my brain.
[[],[],[]]
ListCount= 3
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 28 Oct 2010 09:49:32 +0100
Subject: RE: [Xerte] multi -dimensional arrays
reviewArray[i] is an object, not an array
From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]
Sent: 27 October 2010 15:42
To: Xerte list
Subject: [Xerte] multi -dimensional arrays
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
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101028/8b0fa89d/attachment.html
More information about the Xerte
mailing list