Micro Focus QTP (UFT) Forums
Scripting Problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Scripting Problem (/Thread-Scripting-Problem)



Scripting Problem - devanggoel - 02-19-2010

can any one tell me the solution about this problem whit in minimum line of code....
we have 50 text fields in a application form and we want to insert the same data in all but all 50 fields have the different properties.


RE: Scripting Problem - manabh - 02-19-2010

Hi,
You want to fill out ALL text boxes on screen or few of them?


RE: Scripting Problem - sreekanth chilam - 02-19-2010

Refer the below example & implement accordinglySmile

Code:
Set Edt_obj=Description.Create
Edt_obj("micclass").value="WebEdit"

Set x=Browser("..").Page("..").ChildObjects(Edt_obj)
For i=0 to x.count-1
    x(i).Set "sample data"
Next