Micro Focus QTP (UFT) Forums
The SetTOProperty on an object is n ot working... - 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: The SetTOProperty on an object is n ot working... (/Thread-The-SetTOProperty-on-an-object-is-n-ot-working)



The SetTOProperty on an object is n ot working... - shibinp - 09-02-2011

Dear friends...

I had read that we can set the property of an object using SetTOProperty method and i tried the following code...

Code:
Set obj=Browser("B").Page("P").WebEdit("WebEdit")
MsgBox obj.GetROProperty("name")
obj.SetTOProperty "name","NewName"
MsgBox obj.GetROProperty("name")

But unfortunately this is not working, two times MSG box showing the old name itself. Also i am not able to track the problem... Can any one help me to out from this ...

Waiting for your reply...