I am trying to load an array in a loop as multiple ASP records ets are being generated.
For each record in the ASP recordsets, I want to load some values into an array which I can reference later.
This is what I have;
var ChildAttend = new Array()
var Array_Index = 0
ChildAttend[Array_Index, 0] =<%=Child_Index%>
ChildAttend[Array_Index, 1] =<%=rstChildAttend("LocationID") %>
ChildAttend[Array_Index, 2] =<% = rstChildAttend("VisitNum") %>
Array_Index = Array_Index + 1
I use the Array_Index variable as a type of row counter, except that my code does not insert the value of Array_Index but the text equivalent "Array_Index", which gives an error when the page is being loaded.
I have tried parseInt but that did not work. Why am I not able to get the value out of the variable? It works when I try to get the values out using a for loop.
Help please. I am starting to loose money on this contract.
Denis
Programmer, Canada
For each record in the ASP recordsets, I want to load some values into an array which I can reference later.
This is what I have;
var ChildAttend = new Array()
var Array_Index = 0
ChildAttend[Array_Index, 0] =<%=Child_Index%>
ChildAttend[Array_Index, 1] =<%=rstChildAttend("LocationID") %>
ChildAttend[Array_Index, 2] =<% = rstChildAttend("VisitNum") %>
Array_Index = Array_Index + 1
I use the Array_Index variable as a type of row counter, except that my code does not insert the value of Array_Index but the text equivalent "Array_Index", which gives an error when the page is being loaded.
I have tried parseInt but that did not work. Why am I not able to get the value out of the variable? It works when I try to get the values out using a for loop.
Help please. I am starting to loose money on this contract.
Denis
Programmer, Canada