new to asp

J

jaydonnell

I'm doing some asp, but all of my experience is with linux and linux
related tools like python, php, mysql, etc.

Basically, I can't find any good resources for asp/vb script. Nothing
akin to the docs on python.org or php.net.

Here is my current problem. I have a result set I got from an adodb
connection and I want to loop through all the fields, but the number of
fields may vary. Here's my code.

If not RS.eof then
RS.movefirst
Do

'this doesn't work so how would I do this.
for each field in rs.fields
Response.write "Here is some Data " & field & "<br>"
next

Rs.movenext
Loop until RS.eof
End if


Basically, I don't know how to get the fields into a form that I can
loop through. Any help or links to good resources will be greatly
appreciated.
 
J

Jeff Cochran

I'm doing some asp, but all of my experience is with linux and linux
related tools like python, php, mysql, etc.

Basically, I can't find any good resources for asp/vb script. Nothing
akin to the docs on python.org or php.net.

There's always:

http://www.devguru.com/Technologies/vbscript/quickref/vbscript_intro.html
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriVBScript.asp
http://ww.aspfaq.com/
Here is my current problem. I have a result set I got from an adodb
connection and I want to loop through all the fields, but the number of
fields may vary. Here's my code.

If not RS.eof then
RS.movefirst
Do

'this doesn't work so how would I do this.
for each field in rs.fields
Response.write "Here is some Data " & field & "<br>"
next

Rs.movenext
Loop until RS.eof
End if


Basically, I don't know how to get the fields into a form that I can
loop through. Any help or links to good resources will be greatly
appreciated.

Check this list of tutorials and samples for using record sets:

http://www.google.com/search?hl=en&lr=&q=asp+recordset+tutorial

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top