NEXT statement
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Goes directly to the END of an iterating block and starts the next iteration of the block.
Syntax
|
- label
- The name of the block for which you want to start the next iteration. If you do not name a block, the AVM starts the next iteration of the innermost iterating block that contains the NEXT statement.
Example
The
FOR EACH block in this procedure reads a single Customer record
on each iteration of the block. If the SalesRep field
of a Customer record does not match the SalesRep value supplied
to the PROMPT-FOR statement, the NEXT statement causes the AVM to
do the next iteration of the FOR EACH block, bypassing the DISPLAY
statement.
r-next.p
|