LogOff

This function is used internally to logoff the session just prior to termination of the process. It works by sending the user to the base screen and executes the ‘LogOff” macro. It returns True if the session was logged off properly. Note: this function is not required to be called by the user as the server calls it automatically when the user disconnects.

Syntax: [bOK =] SM.LogOff

bOK        (Boolean) Optional – Returns True if the session was successfully logged off.

Example:

Dim bSuccess As Boolean

bSuccess = SM.LogOff