Progress
Programming
Handbook
Looping
Looping, or iteration, is one of the automatic processing services that Progress provides for blocks. REPEAT blocks and FOR EACH blocks iterate automatically and you can force a DO block to iterate by using a DO WHILE, or a DO variable = expression1 TO expression2 [BY k]. The following code fragments show iterations using these block statements:
REPEAT and FOR EACH blocks iterate automatically. You can make a DO block iterate by using the WHILE option or the TO option in the DO block header:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |