inserting variables into a string

Advanced programming using WinTask scripting language

inserting variables into a string

Postby thissisnate on Sat Jul 30, 2016 1:23 am

WriteHTML("INPUT TEXT[ID= 'CoverageRowView-input',INDEX= '2']", cc1$ (i))


I need to replace the 2 in INDEX= '2' with an i so that my loop will work correctly. I have tried INDEX= '"+i+'" but it does not work. The loop likes the below


i=0
repeat
WriteHTML("INPUT TEXT[ID= 'CoverageRowView-input',INDEX= 'i']", cc1$ (i))
SendKeys("<Tab>")
Pause 5 seconds
WriteHTML("INPUT TEXT[ID= 'CoverageRowView-']", payroll1$ (i))
WriteHTML("INPUT TEXT[ID= 'CoverageRowView-']", nEE1$ (i))

'ClickHTMLElement("DIV[OUTERTEXT= '']", nEE1$ (i))
i=i+1
until cc1$ (i)=" "
thissisnate
 
Posts: 1
Joined: Sat Jul 30, 2016 1:18 am

Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron