how to terminate a program in delphi code example Example: how to end a program in delphi frmName.Close;