FTPWI.GetErrorInfo

table FTPWI.GetErrorInfo (

)

Example 1

ErrInfo = FTPWI.GetErrorInfo();

Gets the last FTP error info and stores it in table ErrInfo.

Example 2

FTPWI.Download("ftp://ftp.yourdomain.com/file.exe", _TempFolder .. "\\file.exe", "FTP_USERNAME", "FTP_PASSWORD", MODE_BINARY, 20, 21, true, nil);

err = Application.GetLastError();

if err ~= 0 then
FTP_Error = FTPWI.GetErrorInfo();
Dialog.Message("FTP error", FTP_Error.Number, FTP_Error.Message);
end

Downloads a file. If the returned error is anything other than successful, display the extended FTP error information.

See also: Related Actions