× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Out-of-luck... mostly...

As I recall, blanks that you type are retained in the char field, so for
a blank line, you could space all the way across a line to add a line
break. However, if this field is ever displayed in a different
application, with a different CNTFLD length, things will look odd.

Other than writing a long char field out to 5250 without breaking words,
this feature is pretty lame. No embedded formatting allowed. About all
I ever use it for is for error pop-ups, where I want to present a
detailed message to the user. It's kludgy, and only works if the field
is input capable, even though it only really works when display
management writes field data to the screen.

Today, I'd probably try to do this in EGL-RUI....

-Eric

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Tuesday, October 06, 2009 2:45 PM
To: RPG programming on the IBM i / System i
Subject: Re: WRDWRAP and Blank Lines

But what if one wants formatted text? like... a new paragraph? Or a
blank line? Or text centered in the field?

DeLong, Eric wrote:
With WRDWRAP, simply type your text (without regard to line breaks).
The next time the screen is written, the wordwrap function pretties it
up....

Hth,
Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert J. Mullis
Sent: Tuesday, September 29, 2009 12:22 PM
To: RPG programming on the IBM i / System i
Subject: WRDWRAP and Blank Lines

Pardon me if there is a simple solution to this, but I have only used
WRDWRAP a couple of times and the last time was 5+ years ago.

Scenario:

I have a field on a screen defined as 700A with CNTFLD(70) and
WRDWRAP.
I key some text on the first line on the screen and then press the
space
bar until the cursor reaches the beginning of the third 70 character
line. I key some more text and then save the keyed value to a file. I
come back into this screen to view what I just keyed and saved and the
second line (which I spaced through before) is gone and the text from
the third line is moved up to the second line.

Is there any way to have the text saved the way it was keyed and not
remove blank lines?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.