FTPSEND Function

Sends a file to an FTP server.

filecontents = FTPSEND(ftpdomain,user,password,path,filecontents,filename,error)

The function has the following parameters:

ParameterDescription
ftpdomainThe domain name of the FTP site.
userA valid user of the FTP site
passwordThe password of the user
pathThe location of where to send the file
filecontentsThe contents of the file being sent
filenameThe name of the file to send
errorError status returned by function

FTPDELFILE

declare function FTPSEND, msg, utility

 

ftpdomain = 'my.ftp.site.com'

user = 'someone'

password = 'a valid password'

path = 'myFtpFiles'

filename = 'How_To_FTP'

filecontents = "Test FTP text"

 

ftpReply = FTPSend(ftpdomain,user,password,path,filecontents,filename,error)

 

if ftpReply then

   swap char(13):char(10) with '' in ftpReply

   msg(@window,ftpReply)

end else

   if error then

      x = msg(@window, 'Contents of Error: ':error)

   end else

      x = msg(@window, 'No file returned')

   end

end
  • guides/programming/programmers_reference_manual/ftpsend.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1