Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading an Array 1

Status
Not open for further replies.

tomhughes

Vendor
Aug 8, 2001
233
US
I am retrieving data from a data base using ASP, and putting it into text boxes.
The data has the format of strVar(i). i can be from 0 to 60 depending on what it gets from the data base.
strVar(0) always contains the number of records returned from the query.
What is wrong with this code ???


myArray = new Array();
for (i = 1; i <= strVar0; i++) {
myArray = strVar(i);
}

It doesn't seem to like strVar(i)
 
if not using mx then remeber to check that all the data has been loaded first

myArray = new Array(strvar0);
for (i = 1; i <= strVar0; i++) {
myArray = this[&quot;VarName&quot;+i];
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top