WORDWRAP

In a multiple-segment field, the WORDWRAP attribute enables a multiple-line editor. This can wrap long character strings to the next line of a multiple-segment field for data entry, data-editing, and data-display.

4GLREF00000054.gif

field-tag is the field tag that you declared in the SCREEN section, where it appears in two or more field segments.

If the same field tag is repeated in two or more locations in the screen layout, this attribute instructs INFORMIX-4GL to treat all the instances of that field tag as successive segments of a multiple-segment field. These can display data strings that are too long to fit on a single line of the screen form.

4GL for Windows replaces each set of multiple-segment fields with a single WORDWRAP field of a rectangular shape. The WORDWRAP field has the same width as the multiple-segment field in the form specification file, but can be more compact vertically, since the GUI does not require as much vertical space to display the same number of characters as a character-based form file. The COMPRESS keyword option is applied to this field automatically, and the delimiters are replaced with blank spaces.

If the lines of the multiple-segment field are not contiguous, or if the field has an irregular shape, as in the previous example, the WORDWRAP field that results is based on the maximum height and width of the multiple-segment field as a unit. The resulting WORDWRAP field can overlap or be overlapped by labels or individual form fields. To prevent such unpredictable effects, consolidate the segments of multiple-segment fields into rectangular shapes.

When a variable is bound to the WORDWRAP field during INPUT, only the number of characters allowed by the bound variable can be entered. If necessary, text in the field scrolls to allow the full number of characters to be entered. Data compression takes place before storage in the bound variable.

Related Attributes

AUTONEXT
FORMAT
REQUIRED
COLOR
INCLUDE
REVERSE
COMMENTS
INVISIBLE
UPSHIFT
DEFAULT
NOENTRY
VALIDATE LIKE
DISPLAY LIKE
PICTURE
VERIFY
DOWNSHIFT
PROGRAM