Loading...
 

TerminateApp

TerminateApp

TerminateApp,
197958 TerminateApp(reason), TerminateApp(STACK)

Stack
Stack Position Description
Stack(In) Top -
Stack(Out) Top -

Closes all open windows and exits the ClassiX® application immediately. The command can be used if any boundary conditions (database version too old) are not met when starting the application, if the user cancels the login by pressing the Cancel button, or if the application has been run within a batch and has finished.

All instructions behind TerminateApp are no longer executed. Since no commands are executed after TerminateApp, TerminateApp executes an EndTXN so that all changes made up to that point are also recorded within the transaction. If this is not desired, an AbortTXN must be written before TerminateApp.

TerminateApp does not automatically log out the currently logged in CX_USER.

The optional parameter allows to specify the reason for closing ClassiX. This can be passed either directly or via the stack.

198095

Immediately after all windows are closed, the TERMINATE event is sent to all modules. In this way, a user who is still logged in can be logged out before the system closes.

Code example:
TerminateApp("Die Anwendung wurde beendet, da die maximale Sitzungszeit abgelaufen ist.") // oder alternativ mehrsprachig T("Die Anwendung wurde beendet, da die maximale Sitzungszeit abgelaufen ist.", "The application was closed because the maximum session time was exceeded.") TerminateApp(STACK)