Difference between revisions of "EXIT"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 19: Line 19:
  
 
==Description==
 
==Description==
The EXIT command causes control to drop out of a DO WHILE or FOR NEXT loop.
+
The EXIT command causes control to drop out of a DO...WHILE or FOR...NEXT loop.
  
  

Revision as of 15:05, 17 March 2009

EXIT

Class

Applications


Purpose

Force exit from a DO WHILE loop


Syntax

EXIT


See Also

DO WHILE, FOR, LOOP


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