Hi all,
I have a program that will upload a file via FTP to a remote server. It works well is there is just 1 file, however if there are multiple files then I get an error on the 2nd and subsequent files about variable nFtpPort. the code that I call is below and I pass the variable correctly as it works when there is only 1 file. Any help appreciated as I'm a bit stuck.
PARAMETERS pcServer,pnPort,pcUser,pcPass,pcLocalName,pcFtpName
SET PROCEDURE TO wwftp addi
LOCAL o as wwFtp
o=create("wwFTP")
o.lPassiveFtp = .T.
o.nFtpPort = pnPort
? o.FTPConnect(pcServer,pcUser,pcPass)
? o.FtpSendFileEx2(pcLocalName,pcFtpName)
o.FtpClose()
o=null
WAIT clear
~M
Go raibh maith agat
~M