× 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.



%scan for the hex character  "0D"

something like this:
do until end..
endofline = %scan( x'0d': textarea)
line = %subst( textarea: 1: endofline)
textarea = %subst(textarea: endofline)
... make sure to include conditions to process the last line and no to copy the "0d" When you display the textarea from several fields, you need to "build it" ; line1 + x'0d' + line2.....
_________________________________________________________________________________________
Mike Cunningham wrote:

I'm not sure you can display it to a green screen. I have done some
scan/replace of textarea data and stripped off and non-displayable
characters before I saved it so green-screen worked OK. I suppose you
could store it with the hard return and strip it off before displaying
it

Shane_Cessna@xxxxxxx 8/3/2006 10:37:02 AM >>>
Hey list,

How does anyone handle a hard return in a textarea field on a web form?
I can save it in a PF, but how do I detect it through an RPG read and display it properly?

Shane Cessna Senior iSeries Programmer
North American Lighting, Inc.
2275 S. Main St.
Suite A
Paris, IL 61944
Flora Office - 618.662.4483 x2776
Paris Office - 217.465.6600 x7776


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.