I'm trying to read the files from a ftp-server.
I modified the ftpdir-sample and always get "oFTP:hFTP is null"
both oInternet:hWinINet and oInternet:hSession are empty
Am I doing something wrong or is it a Vista-related problem?
Many thanks for help,
Dietmar
function Main()
local oInternet := TInternet():New()
// local oFTP := TFTP():New( "207.46.133.140", oInternet ) //
local oFTP := TFTP():New( "ftp://ftp.ourserver.at/", oInternet )
local aFiles
if ! Empty( oFTP:hFTP )
aFiles = oFTP:Directory( "." )
AEval( aFiles, { | aFile | MsgInfo( aFile[ 1 ] ) } )
else
MsgAlert( "oFTP:hFTP is null" )
endif
oInternet:End()
MsgInfo( "Done!" )
return nil