Progress
Language Tutorial
for Windows


Block Property Summary

Table 6–2 shows the properties that Progress associates with each type of block. Implicit properties are those that come by default. Explicit properties are those that you can associate with the block by adding the Progress syntax listed in the table.

Table 6–2: Block Properties 

Property

REPEAT

FOR EACH

DO

Proce- dure
Internal Proce- dure

Trigger
Looping
Implicit

Explicit:
WHILE
TO
Implicit

Explicit:
WHILE
TO


Explicit:
WHILE
TO
None
None
None
Record
reading
None
Implicit

Explicit:
Record Phrase
None
None
None
None
Frame
allocation
Implicit

Explicit:
WITH FRAME
Implicit

Explicit:
WITH FRAME


Explicit:
WITH FRAME
Implicit
Implicit
Implicit

Practice Problems

These problems give you some practice with blocks.

Problem 6-2: lt-06-2a.p and lt-06-2b.p

Using a FOR EACH block and a DO block, loop through all the customer records and count the number of customers whose credit limit is greater than $15,000. Display the customer number, name, and credit limit.

Problem 6-3: lt-06-s3.p

Using the REPEAT block, increment a counter by 1 up to 10 times and display the counter. Once the counter has a value of 10 leave the REPEAT block.


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