PDA

Click to See Complete Forum and Search --> : Simple RecordSet Q


hydr0p0nix
Aug 31st, 2000, 12:27 PM
I'm using an ftp class that gets a directory list
into a disconnected recordset
but when i have the recordset I can't get a string out of it to put into a variable.
dim rs as recordset
rs = oFTP.getdirectorylist
rs.open
rs.movefirst
dim vTemp as string
while not rs.eof
'vTemp = rs' -->no good
vTemp = Cstr(rs)' -->no good

any ideas??

Mongo
Aug 31st, 2000, 06:02 PM
As you already know, Chris Eastwood's CodeGuru FTP Class
at http://codeguru.earthweb.com/vb/articles/1852.shtml
gives you a good start. Otherwise, this may help you on your way:

While (Not rs.EOF)
' granted it is overkill...
Debug.Print rs(0)
vTemp = rs(0)
Debug.Print vTemp
rs.MoveNext
Wend