Exit statement

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

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

Delphi Script statements

If Then statement

Case of statement

With statement

For To Do loop

Repeat Until loop

Continue statement

Break Statement

Your Ad Here