1. Home
  2. Computing & Technology
  3. Delphi Programming
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?
Explore Delphi Programming
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2010 About.com, a part of The New York Times Company.

All rights reserved.