Micro Focus QTP (UFT) Forums
Getting text from Edit Box - 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: Getting text from Edit Box (/Thread-Getting-text-from-Edit-Box)



Getting text from Edit Box - Raj20091 - 09-30-2009

Hello,

I am downloading a file form the web. Before I save it, I want to capture the file name that is in the edit box.
I tried using a = Dialog("Save As").WinEdit("File name:").GetTOProperty("Text") and "value" but noting is getting returned.
See the attachment.

Thanks,
Raj


RE: Getting text from Edit Box - Ankur - 10-01-2009

Use

Code:
a = Dialog("Save As").WinEdit("File name:").GetROProperty("text")

TO is used to fetch the property values stored in OR.


RE: Getting text from Edit Box - Raj20091 - 10-01-2009

That worked. Thank you!