GetLastErrCode Method for Applications
The GetLastErrCode method returns the error code for the most recent error that the disconnected client logged. It uses the following syntax:
Application.GetLastErrCode()
For example:
TheApplication().GetLastErrCode();
This method includes no arguments.
The error code that this method returns is a short integer. An error code of 0 (zero) indicates no error occurred.