Jump to content

Include new line \r\n in a variable for a text area


Go to solution Solved by JohnOne,

Recommended Posts

I'm trying to enter text into a text area (_IEFormElementSetValue) that includes new line entries.

I can do this by setting the focus on the text area element and simulating key strokes including the enter key for new lines.

The problem is that the data I'm entering is built during a loop with other events happening. I'm quite certain I could still programmatically set the focus at the correct time...right arrow to get to the end of the line and enter the next line by simulating key strokes...but I'm hoping for something more elegant.

Here is what I'm trying to do in the loop

$description = $aResult[$r][1]

For...

$description &= "\r\n" & $aResult[$r][1]

Next

_IEFormElementSetValue ($text-area, $description)

Clearly the "rn" is not correct. Does anyone know what the string would be to cause a new line in the text area?

THANKS

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...