Difference between revisions of "EXIT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Force exit from a DO WHILE loop | Force exit from a DO WHILE loop | ||
Line 15: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[DO WHILE]], [[FOR]], [[LOOP]] | + | [[DO WHILE]], [[FOR]], [[LOOP]], [[SCAN]] |
==Description== | ==Description== | ||
− | The EXIT command causes control to drop out of a DO | + | The EXIT command causes control to drop out of a DO WHILE or FOR...NEXT loop. |
Line 26: | Line 19: | ||
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> | ||
Line 37: | Line 30: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Applications]] | ||
+ | [[Category:Applications Commands]] |
Latest revision as of 17:17, 10 November 2009
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 Server, Recital