function
| Library: Email support, SMTP and POP3 (OMMAIL) Include: ommail.xin | Returns: true if the last operation on the MailInBox resulted in an error, and false otherwise | 
define external switch function MailInBoxIsInError
                value MailInBox this-MailInBox
Argument definitions
Note that any function in the Mail library can result in an error, except the following:
MailInBoxGetStatusReport
MailInBoxIsInError
MailOutBoxGetStatusReport
MailOutBoxIsInError
MailLibraryVersion
MailIsVersionCompatible
halt when MailInBoxIsInError MyBox