[Migrated content. Thread originally posted on 08 March 2006]
Hello,
When you are displaying a value in a multiline entry field is there any way you can start a new line rather than just having the value "wrap around" in the entry field?
Thanks
word wrapping is a feature of the control and that the runtime calls the Microsoft API and the runtime does not receive any information from the API about where text wrapping occurs. The runtime only receives the text as a continuous string.
Consider using the "VALUE IS MULTIPLE value". Its effect is to match each line of the entry field to occurrences in a table. Note that this property does not provide a way to limit the amount of text the user can enter on a single line. To prevent too much data input on one line, you might set the width of the entry field to be the same as the size of the value data item and set the control to use a fixed font.
You may find the style USE-RETURN helpful too. It allows the user to start a new line in the field by typing .
For example, when a multiline entry field is defined as
03 Form1-Ef-2, Entry-Field,
COL 6,00, LINE 16,00, LINES 15,00 CELLS,
SIZE 22,00 CELLS, 3-D, ID IS 3, MULTILINE,
USE-RETURN, VALUE MULTIPLE WS-item-table.
and the corresponding table is defined as
01 WS-item-table PIC x(30) OCCURS 10 TIMES.
the action would be to put the wrapped text into the next underlying Working Storage table item.
You can programmatically insert a hex "Od0A" to insert a carriage return/linefeed into the text.
[Migrated content. Thread originally posted on 08 March 2006]
Hello,
When you are displaying a value in a multiline entry field is there any way you can start a new line rather than just having the value "wrap around" in the entry field?
Thanks
Thanks for the information, Dilbert.
The carriage return-line feed insertion worked.
[Migrated content. Thread originally posted on 08 March 2006]
Hello,
When you are displaying a value in a multiline entry field is there any way you can start a new line rather than just having the value "wrap around" in the entry field?
Thanks
Thanks for the information, Dilbert.
The carriage return-line feed insertion worked.
[Migrated content. Thread originally posted on 08 March 2006]
Hello,
When you are displaying a value in a multiline entry field is there any way you can start a new line rather than just having the value "wrap around" in the entry field?
Thanks
Thanks for the information, Dilbert.
The carriage return-line feed insertion worked.