WORDWRAP

WORDWRAP operator divides a long character string into segments and sends them to successive lines of a 4gl report:

Description: WORDWRAP%20Operator

Here

WORDWRAP operator can appear only in the FORMAT section of a REPORT program block.

WORDWRAP automatically wraps successive segments of long character strings onto successive lines in a 4gl report:

WORDWRAP RIGHT MARGIN is used to set a temporary right margin.

This temporary margin is calculated starting from the left side of the page. The value of the temporary right margin cannot be smaller than the current character position and greater than 132 (or the size of the right margin specified in the OUTPUT section). The current character position becomes the temporary left margin.

Here the PRINT statement specifies that a character string stored in a variable called my_text must be printed out between the temporary left margin set as COLUMN 10 and the temporary right margin set as COLUMN 70:

PRINT COLUMN 10, my_text WORDWRAP RIGHT MARGIN 70

Temporary margin values override the margin values from the OUTPUT section or the default margins. The margins of the OUTPUT section or the default margins are restored after the PRINT statement was executed.

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.