STATEMENT:  EXIT

EXIT

The EXIT statement allows you to exit from inside a block of code such as a conditional statement (DO ...LOOP, FOR ... NEXT, FOR EACH ... NEXT) or a procedure (FUNCTION, SUB) before it would normally be completed.

This allows you to exit from inside a DO UNTIL ... LOOP.

Code:
<% EXIT DO %>

This allows you to exit from inside a DO WHILE ... LOOP.

Code:
<% EXIT DO %>

This allows you to exit from inside a FOR ... NEXT.

Code:
<% EXIT FOR %>

This allows you to exit from inside a FOR EACH ... NEXT.

Code:
<% EXIT FOR %>

This allows you to exit from inside a FUNCTION.

Code:
<% EXIT FUNCTION %>

This allows you to exit from inside a SUB.

Code:
<% EXIT SUB %>

Copyright 1999 by Infinite Software Solutions, Inc.
Trademark Information