Abort
Belongs to : ProcedureDescription
The Abort procedure stops the current processing and exits to the last exception block. In doing so, no end user message is produced – the abort is silent.
Example code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
begin // Enter a try block Try ShowMessage('Before abort'); Abort; ShowMessage('After abort'); Except On E : Exception do ShowMessage(E.Message + ' exception occured'); end; ShowMessage('After try'); end; { Before abort Operation aborted exception occured After try } |