Progress
Language Tutorial
for Windows


Using the DO Block

You use the DO block to group statements together and treat them as a single unit. DO has no implicit block properties. However, you can add explicit looping and frame allocation properties to the DO block by using the syntax shown below.

SYNTAX
[ label: ] 
  DO  [ variable = expression1 TO expression2 ]
      [ WHILE expression ]
      { [ frame-phrase ] } :
  END 

Here are some common uses of the DO block:

It’s important to note that the DO and END syntax of a trigger block does not make it a DO block. As described in this section, DO is a control structure that has no block properties unless you specify them with optional syntax. The trigger block DO has no explicit syntax options.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095