%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 itShane_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 ProgrammerNorth American Lighting, Inc. 2275 S. Main St. Suite A Paris, IL 61944 Flora Office - 618.662.4483 x2776 Paris Office - 217.465.6600 x7776