FTPConnectionIsInError
Full Description
swirl
Syntax
  define external switch function FTPConnectionIsInError
             value FTPConnection this-FTPConnection


Purpose

This function returns true if the last operation on the connection generated an error.

Argument:

  • "this-FTPConnection" is an opaque object of type FTPConnection.

Example:

  ; 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

Copyright © OmniMark Technologies Corporation, 1988-1998.