I start some tests with tFTP. I started with the sample tftp.prg from the samples dir
Code: Select all
//----------------------------------------------------------------------------//
function Main()
local oInternet := TInternet():New()
local oFTP := TFTP():New( "207.46.133.140", oInternet ) // Microsoft FTP
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
Code: Select all
MsgAlert( "oFTP:hFTP is null" )
Am I missing something.
Greetings,
Willy