The Activity_GetExitMode() function ascertains the mode used to exit the runtime engine. You exit the runtime engine by exiting the application, or by accessing the Modifier or Report Writer.
Activity_GetExitMode()
• None
mode – An integer representing one of the following exit modes:
Value |
Description |
---|---|
0 |
The runtime engine closed. |
1 |
The Report Writer was accessed. |
2 |
The Modifier was accessed. |
Add this function to a form post script for the application’s Main Menu form. This ensures that you can determine the exit mode, regardless of where the user chooses to exit the runtime session.