Why is Progress language considered as block-structure language? - Progress

Why is Progress language considered as block-structure language?



- Progress language provides a block structured manner and the statements can be grouped together into blocks.

- Procedures are used in the language and it consists of the largest block structures in the Progress language.

- Repeat block is used to have the repeat loop in 3GLs and the code that is being shown is as follows:

DEFINE VARIABLE cnt AS INTEGER.
REPEAT cnt = 1 TO 15:
DISPLAY "Welcome to Progress!"
WITH CENTERED.
END.

- The structure begins with the block-header statement and end with the END statement.

- The block structures are applied for the processing services to the group of statements.
Post your comment