TCustomApplication.Terminate procedure
Terminate the application.
Declaration
procedure Terminate; virtual
procedure Terminate(AExitCode: Integer); virtualArguments
AExitCode | Exit code for the program. |
Description
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 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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
