<<

Contents

Search

>>

 

REPEATLINE

 

 

Instruction

 

 

Syntax:

REPEATLINE

 

Meaning:

The current line in report is printed again.

 

This instruction is only valid in Macros that are executed while a report is executed.

 

REPEATLINE has the effect that after a line is printed printing does not continue at the next line of the current block but the same line is printed again. If the command REPEATLINE is executed again the procedure is repeated. This command can be used in order to print sublists of variable length.

 

Note: This instruction does not have any effect in the head and foot block.

 

Sample:

We want to print all articles that have so far been bought by each customer. 

 

1. line: customer fault

2.Zeile: article fault

 

In a Macro of the first line FLAG%=1 is set. In the first Macro of the 2nd line either a START or READ-NEXT, depending on FLAG%, is executed on the reference file with the bought articles and FLAG% is set to 0. The command REPEATLINE is executed as long as a data records are found for the current customer, otherwise the command NEXTBLOCK is executed.

 

See also:

REPLINE

NEWLINE

NEXTBLOCK

NEXTLINE

REPORT