Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== FTPSEND Function ====== ==== Description ==== Sends a file to an FTP server. ==== Syntax ==== filecontents = FTPSEND(ftpdomain,user,password,path,filecontents,filename,error) ==== Parameters ==== The function has the following parameters: ^Parameter^Description^ |ftpdomain|The domain name of the FTP site.| |user|A valid user of the FTP site| |password|The password of the user| |path|The location of where to send the file| |filecontents|The contents of the file being sent| |filename|The name of the file to send| |error|Error status returned by function|| ==== See Also ==== FTPDELFILE ==== Example ==== <code> 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 </code> guides/programming/programmers_reference_manual/ftpsend.txt Last modified: 2024/06/19 20:20by 127.0.0.1