FTPConnectionGetStatusReport
Full Description
swirl
Syntax
  define external function FTPConnectionGetStatusReport
             value FTPConnection this-FTPConnection
        into modifiable stream report


Purpose

This function clears the report shelf if the FTP connection is not in error, and populates the report shelf with one or more error messages (each of which is an item on the shelf) if the FTP connection is in error.

Arguments:

  • "this-FTPConnection" is an opaque object of type FTPConnection.
  • "report" is a stream shelf in which the error messages are stored.

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.