Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Msg(@window, ErrMsg)

See also

Get_Status()MAPILogon()

Example

Code Block
Subroutine DemoMAPILogoff(var)
*      Logs on to MAPI and logs off
$INSERT MAPI_EQUATES
Declare Function MAPILogon, MAPILogoff
Declare Subroutine Msg, Get_Status
if MAPILogon(session) then
  if MAPILogoff(session) then
    Msg(@window, "Logon and logoff successful")
  end else
    Get_Status(display)
    Msg(@window, display)
  end
end else
  Get_Status(display)
  Msg(@window, display)
end
return