Terminate the application.
Source position: custapp.pp line 76
public procedure TCustomApplication.Terminate; virtual; |
AExitCode: Integer |
); virtual; |
AExitCode |
|
Exit code for the program. |
Terminate sets the Terminated property to True. By itself, this does not terminate the application. Instead, descendent classes should in their DoRun method, check the value of the Terminated property and properly shut down the application if it is set to True.
When AExitCode is specified, it will passed to System.ExitCode, and when the program is halted, that is the exit code of the program as returned to the OS. If the application is terminated due to an exception, ExceptionExitCode will be used as the value for this argument.
|
Was Terminate called or not. |
|
|
Runs the application. |
|
|
ExitCode to use then terminating the program due to an exception. |
|
System.ExitCode |