1. Computing & Technology
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

Abort

unit
Sysutils
category
flow control routines

declaration
procedure Abort;

description
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.

example
//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;

in real code

see also
Continue, Exit,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.