Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
procedure Abort;
Terminates the current execution path without reporting an error.
Abort raises a so-called "silent exception" (EAbort), which does not display an error message to the user, redirecting execution to the end of the last try .. finally block.
//alow only numeric characters in an Edit box
procedure TForm1.Edit1KeyPress
(Sender: TObject; var Key: Char);
begin
if not (key in ['0'..'9']) then Abort;
end;
|
Continue, Exit,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|