Break multiple lines input into separated userinputs

cronorainbow

  • Joined: Aug 25, 2011
  • Posts: 7

Thu 8/25/2011 - 19:11

Hello

I have a multiple line input form where user can enter information. I want to break each line into separated userinput like %line1%-->%userinput1%, %line2%-->%userinput2% and so on. How can i achieve this ?
Thanks

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2326

Fri 8/26/2011 - 17:47

You can use the Split Text action, to slit the %UserInput% variable into a list (using a new line as a delimiter), where you can then access each value using the %List% and defining the item of the list using an index: %List[0]% will give you the first item of the list %List[1]% will give you the second item of the list etc.. (note that lists are zero based in WinAutomation) :) Samantha

#2
Not a member yet? Register

Copyright 2013 - Softomotive Ltd