function
| Library: FTP support (OMFTP) Include: omftp.xin | Returns: true if the last operation on the connection generated an error, false otherwise | 
define external switch function FTPConnectionIsInError
           value FTPConnection this-FTPConnection
Argument definitions
To use this function, you must include the following line near the start of your program:
include "omftp.xin"
; example of an error-reporting function define function ftp-err value FTPConnection con as local stream report variable do when FTPConnectionIsInError con put #error "FTP error:%n" FTPConnectionGetStatusReport con into report repeat over report put #error report || "%n" again halt done