WriteHTML not writing properly

Getting started -basics for starting with WinTask

WriteHTML not writing properly

Postby Betty on Fri Aug 03, 2012 6:58 am

I need to fill a numeric field in a web form. What am I doing wrong in this line? It writes the word, not the content!
WriteHTML("INPUT TEXT[NAME= 'souscriptionBO.nbSin']", "BDG(i)")
Betty
 
Posts: 11
Joined: Thu May 12, 2005 11:21 am

Re: WriteHTML not writing properly

Postby TechSupport on Mon Aug 06, 2012 7:50 am

Hello,

When you use "BDG(i)" it's the word BDG(i) which is used, it's not the variable.
The syntax for using the variable called BDG(i) must not include the double quotes.
Plus WriteHTML needs a string variable, so it should be BDG$(i) and the full syntax is:
WriteHTML("INPUT TEXT[NAME= 'souscriptionBO.nbSin']", BDG$(i))

Regards.
WinTask Tech Support
TechSupport
 
Posts: 677
Joined: Thu Nov 16, 2006 9:58 am


Return to Getting started

Who is online

Users browsing this forum: No registered users and 1 guest

cron