Pre-exit Validation property
This is where you specify the action(s) that must be executed before exiting an application. These actions are executed BEFORE attempting to close any open windows.
Using this property enables you to validate that all changed data is correct. If one of the actions associated with the Pre-exit Validation property calls the ErrorRaise() method, then the application exit is not executed. For more information, refer to "Data Validation Failure" .
The Pre-exit Validation property is an application-level property.
If you want to execute method calls at application level, you should specify them as: Application.MethodName()..