Micro Focus QTP (UFT) Forums
Clear input field before entering text - 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: Clear input field before entering text (/Thread-Clear-input-field-before-entering-text)



Clear input field before entering text - janriis - 08-13-2009

Hi all

I have a text field in my application that i need to clear before entering text. How can i do that using descriptive programming ?

I've search for a .clear command but i doesnt exist.

A little extra info. my app is a vb6 application


RE: Clear input field before entering text - basanth27 - 08-13-2009

Isint the Object VBedit ?? Havent worked with much VB based application, if it is, then try this,

Code:
VBedit().Set ""
VBedit().Set "Whatever text you want"