Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 26 :: Page 120
Next Lesson: Course 3:: Session 26 :: Page 140
Logout from the Mail System

The following code logs off the user from the mail system.

imRet_MailReturnCode = ims_MSession.MailLogoff()
If imRet_MailReturnCode <> MailReturnSuccess! then
   MessageBox ("Mail Logoff", 'Error while mail logoff.')
   Return 0
End If

Basically we are calling MailLogoff() and checking for the error.

HomePrevious Lesson: Course 3:: Session 26 :: Page 120
Next Lesson: Course 3:: Session 26 :: Page 140