Hi all,
I try to list all files in a ftp dir in xbrowse
But I get for every filename only "binary" instead of the filename, MsgInfo (aFiles[1,1]) shows the correct filename
Any hints ?
I try to list all files in a ftp dir in xbrowse
But I get for every filename only "binary" instead of the filename, MsgInfo (aFiles[1,1]) shows the correct filename
oInternet := tInternet():New()
oFtp := tFtp():New (cIp, oInternet, cUser, cPW)
IF Empty (oFtp:hFtp)
? "Ftp failed"
ELSE
cFile := GetModuleFileName( GetInstance() )
oFtp:SetCurrentDirectory( cFolder )
aFiles := oFtp:Directory ('*.*')
aFiles := ADel (aFiles,1,.t.) // remove .
aFiles := ADel (aFiles,1,.t.) // remove ..
? Len (aFiles), aFiles [1,1] // works correct
xBrowser aFAny hints ?
kind regards
Stefan
Stefan
