Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to delete prepopulate value in powerbuilder
#1
Not Solved
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.
Reply
#2
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,803 02-09-2015, 08:47 PM
Last Post: arpan
  Delete icon in System tray arpan 2 4,039 07-12-2013, 07:38 PM
Last Post: arpan
  Delete and Replace nodes using vbscript in XML file SweetyChowdhury 0 4,372 04-18-2013, 01:11 PM
Last Post: SweetyChowdhury
  ContextMenu item disabled Powerbuilder Phread 1 4,162 05-24-2012, 10:15 AM
Last Post: Shridevi.Salagare
  To Delete Dynamic Link Present in a WebTable sheikadil15 0 2,391 04-16-2011, 12:54 PM
Last Post: sheikadil15

Forum Jump:


Users browsing this thread: 1 Guest(s)