System.Halt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Halt([ExitCode: Integer]); overload;
procedure Halt([ExitCode: Integer]); overload;

Properties

Type Visibility Source Unit Parent
procedure public System.pas System System

Description

Initiates the abnormal termination of a program.

Halt performs an abnormal termination of a program and returns to the operating system.

To perform a normal termination of a Delphi application, call the Terminate method on the global Application object. If the application does not use a unit that provides an Application object, call the Exit procedure from the main Program block.

Exitcode is an optional expression that specifies an exit code for the program.

See Also

Code Examples