Micro Focus QTP (UFT) Forums

Full Version: How to delete prepopulate value in powerbuilder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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