• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Problem with enter key in a text area

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with enter key in a text area

    So, i have a form with a single field where a user can input text. When they click a button on the form, it will call an RPG program to take the text entered and put it into a table in our system with a field described as CHAR(500). I marked the field on the form as 'Text Area' so that the user can actually see everything they would be typing, but a problem arises if the text entered involved the user pressing enter to go to a new line. The data will still get put in my table, but the system says it contains Undisplayable characters. I've tried scanning the string for instances of things like '\n' and '\r' and removing them, but it doesn't seem to do anything.

    Is there any way to suppress the users ability to press enter on a text area? or is there some other character i should be removing from the string before inserting it into the table?

  • #2
    It's probably the line feed x'25' and talked about this in this post

    Comment

    Working...
    X