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

FTPConnectionIsInError

 
 

Library: FTP support (OMFTP)
Include: omftp.xin
Return type: Switch

Returns: Returns true or false.


Declaration

define external switch function FTPConnectionIsInError
           value FTPConnection this-FTPConnection

Argument definitions

this-FTPConnection
is an OMX component of type FTPConnection


Purpose

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

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
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.