LOOP

From Lianjapedia
Jump to: navigation, search

Purpose

Force control to beginning of a looping command

Syntax

LOOP [IN <workarea>|<alias>]

See Also

DO WHILE, EXIT, FOR, SCAN

Description

The LOOP command forces program control to the top of the closest DO WHILE, SCAN or FOR...ENDFOR | FOR...NEXT loop.

IN <workarea>|<alias>

If the workarea number, letter or alias name is specified, the LOOP is carried out in that workarea. From v6.0.

Example

use patrons index events, names
do while not eof()
    if deleted()
        loop
    endif
    display event, name, seats, seats * price
    skip
enddo