www.kxcad.net Home > Electronic Index > Altium(Protel) Index
The Exit statement returns immediately from a function or procedure. If you call exit from within a try-finally block, the finally part gets executed before the subroutine returns. If the Exit procedure is called from within the main body of the script, then execution of the script will terminate.
Example
Begin
Server := SchServer;
If Server = Nil Then
Begin
ShowError('No SchServer started');
Exit;
End;
See also