Difference between revisions of "EXIT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
==Class== | ==Class== | ||
Applications | Applications | ||
| Line 15: | Line 12: | ||
==See Also== | ==See Also== | ||
| − | [[DO WHILE]], [[FOR]], [[LOOP]] | + | [[DO WHILE]], [[FOR]], [[LOOP]], [[SCAN]] |
| Line 26: | Line 23: | ||
use patrons index events | use patrons index events | ||
seek "BALLET" | seek "BALLET" | ||
| − | do while | + | do while not eof() |
| − | + | if event<>"BALLET" | |
| − | + | exit | |
| − | + | endif | |
| − | + | display name, event, seats, seats * price off | |
| − | + | skip | |
enddo | enddo | ||
</code> | </code> | ||
Revision as of 10:49, 29 April 2009
Class
Applications
Purpose
Force exit from a DO WHILE loop
Syntax
EXIT
See Also
Description
The EXIT command causes control to drop out of a DO WHILE or FOR...NEXT loop.
Example
use patrons index events seek "BALLET" do while not eof() if event<>"BALLET" exit endif display name, event, seats, seats * price off skip enddo
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer