Micro Focus QTP (UFT) Forums
How to delete field values using qtp? - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to delete field values using qtp? (/Thread-How-to-delete-field-values-using-qtp)



How to delete field values using qtp? - Maya - 08-20-2008

hi,

I want the scripts to delete the field values.Since i dont have reset option in my application.Plz help me.


RE: How to delete field values using qtp? - nageshpv - 08-20-2008

If you want to delete values in the fields, you can use,

Code:
Browser("").Page("").WebEdit("").Set ""

this sets the values in the fields to empty.


RE: How to delete field values using qtp? - Maya - 08-20-2008

hi,
I tried ur script.but it is not deleting the fields.any idea plz share with me


RE: How to delete field values using qtp? - nageshpv - 08-20-2008

Have you inserted the Browser,Page and Webedit values in the code?
Code:
Browser("").Page("").WebEdit("").Set ""



RE: How to delete field values using qtp? - Maya - 08-20-2008

s i have inserted.I used

Code:
window("").winobject("").set ""



RE: How to delete field values using qtp? - RaghavendraRaichur - 08-20-2008

Code:
rowser("").Page("").WebEdit("").Set ""

check the object's property "readedit". It must be 0.
Readonly Indicates whether the content of the object is read-only.
If it is 1 then u can't edit.


RE: How to delete field values using qtp? - sailakshmi - 08-23-2008

You can also use press key func
Code:
Browser("").Page("").WebEdit("").PressKey micDel