Skip to main content

[archive] multi-line entry fields

  • July 5, 2006
  • 12 replies
  • 0 views

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith

12 replies

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
use a proportional font (like courier) for the entry-field and then it should work :)

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
use a proportional font (like courier) for the entry-field and then it should work :)

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
It is a long story behind the behavior in terms of allowing more than 40 characters and so on, I am not going into this here now.
However, you should not loose data, I would suggest you make a sample program and report it to tech support.

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
It is a long story behind the behavior in terms of allowing more than 40 characters and so on, I am not going into this here now.
However, you should not loose data, I would suggest you make a sample program and report it to tech support.

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
I have overcome the issue by using a fixed length font. Doesn't look so pretty. but doe work properly.

Regards
Keith

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
In addition, it would help to set the MAX-TEXT property to the entry-field with a value 1920
(48 lines x 40 characters).

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
In addition, it would help to set the MAX-TEXT property to the entry-field with a value 1920
(48 lines x 40 characters).

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
i had the same problem and max-text dosn't help.

with no fixed font you can write more signs then defined in a line - and so it can't be stored :(


       01  b-text.
           03  b-zeile           pic x(5)       occurs 25.
           .....

               05  etext, entry-field using multiple b-zeile size 5
                    .......


for example you can write with no fixed font for example:
12345678
in line 1

but like declared in b-zeile(1) is only 12345 stored and 678 are lost.
This is the problem and i found as solution only to declare a fixed font for the entry-field.

good i can set "notify-change" and check if the cursor is behind the declared size. But so i have to write my own function which do the word wrapping.

regards
David


PS: Sorry for my bad english :)

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
i had the same problem and max-text dosn't help.

with no fixed font you can write more signs then defined in a line - and so it can't be stored :(


       01  b-text.
           03  b-zeile           pic x(5)       occurs 25.
           .....

               05  etext, entry-field using multiple b-zeile size 5
                    .......


for example you can write with no fixed font for example:
12345678
in line 1

but like declared in b-zeile(1) is only 12345 stored and 678 are lost.
This is the problem and i found as solution only to declare a fixed font for the entry-field.

good i can set "notify-change" and check if the cursor is behind the declared size. But so i have to write my own function which do the word wrapping.

regards
David


PS: Sorry for my bad english :)

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
David - you have explained exactly my original point. It DOES lose characters under the conditions you have shown.

At the moment, using fixed fonts seems to be the only solution. Thanks for your input.

Regards
Keith

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
We have experienced the same thing and have used the entry field without MULTIPLE in many cases. If you don't need the data stored in an array, then this is a better solution because you can still use proportional fonts. For all of the "MULTIPLE" type entry fields, we use fixed fonts as you have.

[Migrated content. Thread originally posted on 04 July 2006]

I am having some difficulties with managing this control.

I have a text entry of x(40) occuring 48 times and therefore constructed an entry field as follows:

03 entry-field value multiple DI-line
vscroll-bar use-tab use-return FONT SMALL-FONT
NO-AUTOSEL lines 20 size 40
max-lines = 48
LINE 1 COLUMN 10.25.

It works well, but now I notice that I cannot make it understand that it should only allow 40 characters per line before soft return wrapping should occur. Depending on what is typed in, you can in fact type more than the allowed 40 characters and these are LOST, i.e. no record of them in the receiving field (for obvious reasons).

If I use max text this just limites the full 48 line entry to 1920, it does nothing regarding the line. Because it is a free format NOTES entry, there can be any combination of upper and lower case characters and numerics. I have tried varying randomly the size phrase but I cannot get it to work consistently with all types of input.

Does this control have any method of notification that it has received a field on a line that is larger than the receiving field? It seems daft that it actually just loses the information.

Regards
Keith
We have experienced the same thing and have used the entry field without MULTIPLE in many cases. If you don't need the data stored in an array, then this is a better solution because you can still use proportional fonts. For all of the "MULTIPLE" type entry fields, we use fixed fonts as you have.