Micro Focus QTP (UFT) Forums
How to delete prepopulate value in powerbuilder - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to delete prepopulate value in powerbuilder (/Thread-How-to-delete-prepopulate-value-in-powerbuilder)



How to delete prepopulate value in powerbuilder - qtp-tester - 06-06-2016

Hi,


Code:
Set dw = PBWindow("...").PBWindow("...").PbDataWindow("pbname:=APP")     

dw.SelectCell "#1","PHONE"

' How can I delete the existing phone number before I enter the new value?

dw.type "222-222-2222"

Thanks.


RE: How to delete prepopulate value in powerbuilder - venkatesh9032 - 07-04-2016

Could you elaborate briefly whether the filed is greyedout or editable..Try below syntax

PBWindow("...").PBWindow("...").PbDataWindow("pbname:=APP").set " "

''Now insert new phone number

PBWindow("...").PBWindow("...").PbDataWindow("pbname:=APP").set "12345677 "

'''Let me know if it worked