Jump to content

Taking array and pasting into a textarea on a webpage


Go to solution Solved by dar100111,

Recommended Posts

Hey All!

I want to be able to set an array of tracking numbers into a formobject on a webpage but having some difficulty.  If I were to just paste the numbers from my clipboard they all line up like so...

1

2

3

4

5

Is there a way to take the array which is only 1 column and format it to a variable that I can _IEformelementsetvalue where they all line up in a column?

Maybe clipboard functions are the way to go but wasn't sure.

Wondering if anyone ever had to do this?

Thank you very much!

Link to comment
Share on other sites

  • Solution

May not be the most efficient but seemed to do the trick.

If someone else needs. $inputs is my array and it's one column.

Thanks for the help Dan!

Do
 $track = $inputs[$inputrow][1]
 $inputrow = $inputrow + 1
 $finaltrack = $finaltrack & @LF & $track
 Until $inputrow = $counter + 1

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