how to stop the program in delphi using code code example Example: how to end a program in delphi frmName.Close;