swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

FTPConnectionGetStatusReport

 
 

Library: Net, FTP support (OMFTP)
Include: omftp.xin

Declaration

  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:

To use this function, you must include the following line near the start of your program:


  include "omftp.xin"

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

        Other Library Functions
   FTPConnection
   FTPConnectionChangeDir
   FTPConnectionClose
   FTPConnectionDelete
   FTPConnectionDeleteDir
   FTPConnectionGetStatusReport
   FTPConnectionGetWorkingDir
   FTPConnectionIsInError
   FTPConnectionIsOpen
   FTPConnectionListDir
   FTPConnectionMakeDir
   FTPConnectionOpen
   FTPConnectionRemoteInputFile
   FTPConnectionRemoteOutputFile
   FTPConnectionSetASCII
   FTPConnectionSetBinary
   FTPIsVersionCompatible
   FTPLibraryVersion
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:16 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.