WHILE - vary

Syntax

WHILE ... VARY dobj FROM dobj1 NEXT dobj2 [RANGE range].
  [statement_block]
ENDWHILE.



Effect

The addition VARY and its addition RANGE have exactly the same effect on a WHILE loop as the similarly obsolete additions VARYING and RANGE of the statement DO. The addition VARY can be used more than once in a WHILE statement.

Note

Instead of the addition VARY, in a loop the statement ASSIGN should be used with the addition INCREMENT.

Exceptions

Non-Catchable Exceptions