Hi,
Can someone show me how to do a loop so that I can assign recordset field name values to variables please (using classic ASP)?
I have a recordset called rsChecker and I want to loop through it to create the variables like I have done manually below:
varRecSet0 = rsChecker(0)
varRecSet1 = rsChecker(1)
varRecSet2 = rsChecker(2)
varRecSet3 = rsChecker(3)
varRecSet4 = rsChecker(4)
varRecSet5 = rsChecker(5)
varRecSet6 = rsChecker(6)
varRecSet7 = rsChecker(7)
varRecSet8 = rsChecker(8)
varRecSet9 = rsChecker(9)
This will allow me to just pull through the correct amount of field elements in the recordset.
Very much appreciated.
Can someone show me how to do a loop so that I can assign recordset field name values to variables please (using classic ASP)?
I have a recordset called rsChecker and I want to loop through it to create the variables like I have done manually below:
varRecSet0 = rsChecker(0)
varRecSet1 = rsChecker(1)
varRecSet2 = rsChecker(2)
varRecSet3 = rsChecker(3)
varRecSet4 = rsChecker(4)
varRecSet5 = rsChecker(5)
varRecSet6 = rsChecker(6)
varRecSet7 = rsChecker(7)
varRecSet8 = rsChecker(8)
varRecSet9 = rsChecker(9)
This will allow me to just pull through the correct amount of field elements in the recordset.
Very much appreciated.