-
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??
-
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:
Code:
While (Not rs.EOF)
' granted it is overkill...
Debug.Print rs(0)
vTemp = rs(0)
Debug.Print vTemp
rs.MoveNext
Wend