Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 3rd, 2005, 1:11 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 144
Rep Power: 4 paulchwd is on a distinguished road
ado and recordset

Heres the problem: i need to take the contents of the recordset and place it into a variable. i tried simply assigining it to a variable, it didn't work
(threw an error) I tried using a for loop to assign it to a variable (see below)


----code----

do while (not recset.eof)

for i=0 to recset.fields.count-1
rcrd=recset(i)

next

loop

this didn't work.

How do i do it? Thanks in advance
paulchwd is offline   Reply With Quote
Old Sep 5th, 2005, 7:38 PM   #2
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 144
Rep Power: 4 paulchwd is on a distinguished road
can any1 help me? I really need this to work
paulchwd is offline   Reply With Quote
Old Sep 6th, 2005, 1:29 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Can we have some more complete code? I don't know about ADO in ASP, but in most languages I've worked with, you call a function to get each row as it comes - they're not stored in an array.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC