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
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