PowerBuilder Function Parse DataStore/DataWindow Obj String gf_mail_error_to_string
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Function Name : gf_mail_error_to_string // Argument Name : a_mailreturncode, Arg Type : mailreturncode, Pass By : Value // a_message, Arg Type : String, Pass By : String // a_display, Arg Type : Boolean, Pass By : Boolean // Return Type : String /////////////////////////////////////////////////////////////////////////////////////////////////////////////// // a_Message Error message to prepend to return string // a_Display Boolean (TRUE=display error messagebox) /////////////////////////////////////////////////////////////////////////////////////////////////////////////// String s Choose Case a_MailReturnCode Case mailReturnAccessDenied! s = 'Access Denied' Case mailReturnAttachmentNotFound! s = 'Attachment Not Found' Case mailReturnAttachmentOpenFailure! s = 'Attachment Open Failure' Case mailReturnAttachmentWriteFailure! s = 'Attachment Write Failure' Case mailReturnDiskFull! s = 'Disk Full' Case mailReturnFailure! s = 'Failure' Case mailReturnInsufficientMemory! s = 'Insufficient Memory' Case mailReturnInvalidMessage! s = 'Invalid Message' Case mailReturnLoginFailure! s = 'Login Failure' Case mailReturnMessageInUse! s = 'Message In Use' Case mailReturnNoMessages! s = 'No Messages' Case mailReturnSuccess! s = 'Success' Case mailReturnTextTooLarge! s = 'Text Too Large' Case mailReturnTooManyFiles! s = 'Too Many Files' Case mailReturnTooManyRecipients! s = 'Too Many Recipients' Case mailReturnTooManySessions! s = 'Too Many Sessions' Case mailReturnUnknownRecipient! s = 'Unknown Recipient' Case mailReturnUserAbort! s = 'User Abort' Case Else s = 'Other' End Choose If a_Display Then MessageBox ( 'Mail Return Code', a_Message + ' ' + s, Exclamation!) End If Return s |
Good Luck!
Greetings! I know this is kinda off topic however ,
I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa?
My blog discusses a lot of the same subjects
as yours and I think we could greatly benefit from each other.
If you might be interested feel free to shoot me an e-mail.
I look forward to hearing from you! Great blog by the way!