[Migrated content. Thread originally posted on 05 April 2006]
Is there some setting or non-apparent technigue I'm missing with the multi-line entry field? We're trying to use it for a contiguous text note that can be saved in the array and then used a line at a time with the proper breaks on an order form. The results I'm getting are extremly flakey.I have a multiline entry field with the following properties set.
FONT - TRADITIONAL
LINES - 10.40
MAX LINES - 8
MAX TEXT - 192
SIZE - 20.1
STYLE - MULTILINE
VALUE MULTIPLE - TRUE
VALUE PICTURE - X(24)
The code generator pruduces this working storage:
01 .
03 SCR-UDEFNOTE-TEXT-Item.
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
05 PIC X(24)
VALUE IS " ".
03 SCR-UDEFNOTE-TEXT REDEFINES SCR-UDEFNOTE-TEXT-Item PIC
X(24)
OCCURS 8 TIMES.
The entryfield appears to work fine with the word wrap or enter key moving to the next line. The size allows precisley 24 characters and 8 lines.
When I check the array using debugger everything is in the correct place. However, on occassion, after saving the array to a file and bringing it back for redisplay the display is skewed someway. There are missing letters, missing spaces, and sometime addtional spaces. There does not seem to be a pattern and the problem is intermittant.
If you use the enter key to force the line breaks everything works fine and if you set "value multiple" to false it appears to work fine.
However, editing for changes is another story. If you use the delete key on a character or highlight and delete and try to enter a space and new text you can't. You can arrow key to the end of the line and use the desructive backspace and that works, but if you don't key in the same number of characters you removed it frequently does not make the correct adjustment.



