944,126 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 6930
  • ASP RSS
Nov 16th, 2006
0

passing the recordset data into an Array

Expand Post »
Hi,

Please help me in passing the data from recorset to an array..


Thanks in advance..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zafs is offline Offline
2 posts
since Oct 2006
Nov 16th, 2006
0

Re: passing the recordset data into an Array

information u provided is very less, but hope this will help
lets consider
"Con" is ur dbase cnnection
Dim Array1() --->keep it open for dynamic use
then
set Rs=con.execute("select * from tablename") --> it is ur table recordet
linecount=0
while not Rs.eof
linecount=linecount+1
redim preserve Array1(LineCount)
Array(1)=rs.fields("fieldname")
Rs.movenext
wend

now Array1 is your array and as it is dynamic so no need to worry about the no of records or array size as well
Reputation Points: 10
Solved Threads: 0
Light Poster
noman78 is offline Offline
40 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Seagate Crystal reports ODBC
Next Thread in ASP Forum Timeline: printing throug asp





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC