Click to See Complete Forum and Search --> : what's wrong ?-Please help


snallan
02-13-2003, 05:03 PM
I am trying to populate a 2d array through a loop.The loop object is vb but I am populating a js array.
If i access the 2d array outside the loop there is only 1 value(last one) stored. Can somebody point out what I am doing wrong?

<% For Each element in x
%>

<script language=javascript>
myarray = new array(new array(<%= x.1 %>,<%= x.2%>,<%= x.3 %>,<%= x.4%>))
</script>
<% next %>

Thanks in advance

snallan
02-13-2003, 05:39 PM
Thanks Dave for your help! The vbs 2-d array is an object.

snallan
02-13-2003, 07:51 PM
Yes the problem was solved! Thanks once again.