Highlighted
Valued Contributor.
Valued Contributor.
180 views

Multiline entry field character-per-line limit

Jump to solution

Is there any way to force a mutiline entry field to accept a maximum of 80 characters per line?

03 WS-PROBLEM               PIC X(80) OCCURS 07.

ENTRY-FIELD 3-D ID 116 COL 23 MULTILINE LINES 7
SIZE 80 CELL USE-RETURN MAX-LINES 7 MAX-TEXT 560
USING MULTIPLE WS-PROBLEM.

My current code only checks for max lines and max text, but not max text per line.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Multiline entry field character-per-line limit

Jump to solution

In your runtime configuration file set this:

DEFAULT_FONT FIXED

View solution in original post

4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Multiline entry field character-per-line limit

Jump to solution

I did a simple display my-screen / accept my-screen based on the screen section

01 my-screen.
05 ef-1 ENTRY-FIELD 3-D ID 116 COL 23 MULTILINE LINES 7
SIZE 80 CELL USE-RETURN MAX-LINES 7 MAX-TEXT 560
USING MULTIPLE WS-PROBLEM.

shjerpe_0-1582130430902.png

I can only put in 65 characters per line before the characters go into the next line.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Multiline entry field character-per-line limit

Jump to solution

I added this to my program 

display standard graphical window
lines 50 size 110 user-colors.

the line accepts 79 characters before advancing

multi.jpg

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Multiline entry field character-per-line limit

Jump to solution

Thanks for the reply.

Actually, I did try this before but was hoping for a better solution. Looks like I have no choice.

As I know, this method also requires a fixed font as characters have different widths.

So how do I set a fixed font width for the entry field? I found something like this but could not get it.

https://community.microfocus.com/t5/Extend-and-AcuCOBOL-Forum/archive-Multiline-Entry-Fields-Redux/m-p/1710616

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Multiline entry field character-per-line limit

Jump to solution

In your runtime configuration file set this:

DEFAULT_FONT FIXED

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.