Ken Fine wrote:
Suppose I've built a recordset. I want some code to run for each
record in the recordset in a "loop." In ASP VBScript, how would you
express the following:
For each [record] in [recordset]
[run some code]
next
The only thing I'm really fuzzy on is the syntax for describing each
recordset row. Thanks for any help.
dim arData, rs, i
'open the recordset then
if not rs.EOF then arData = rs.GetRows
rs.close: set rs = nothing
'close and destroy the connection here as well
for i = 0 to Ubound(arData,2)
'do your stuff
next
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"