I want to assign the WebEdit's html id to a variable and then use it.
Browser("name:=Price Lockdown").Page("title:=Price Lockdown").WebEdit("html id:= " & ID).Set("1.23")
but QTP complains that it can't recognize the webedit. if I just put in the actual string value of ID variable then it works. my assumption is that since i am not ending with a double quote that's why its not recognizing, but how can i insert a double quote at the end?
Public Function SetLockdownValue(rowID, elemID, elemValue)
id = "ctl00\_ctphBody\_TC\_TP1\_InvestGV\_"& rowID & "\_ReturnsGV\_estimGV\_ctl03\_" & elemID
Browser("name:=Price Lockdown").Page("title:=Price Lockdown").WebEdit("html id:=" & id).Set(elemValue)
TReddy - I don't understand what you are trying to say actually.