Micro Focus QTP (UFT) Forums
Message box to collect input from user during run-time?? - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Message box to collect input from user during run-time?? (/Thread-Message-box-to-collect-input-from-user-during-run-time)



Message box to collect input from user during run-time?? - egun - 09-10-2009

Is there a function to have a message box collect information from a user during run-time? Instead of displaying information (like using msgbox ("Start Test")) but have a text field where the user enters in some info and then stores that info in the Global Action table?
Please disregard - found this in the QTP Help section.

InputBox


RE: Message box to collect input from user during run-time?? - Newom85 - 09-10-2009

use the following:

Dim a
a = inputBox("Please Enter Input")
'Variable (a) is now set equal to whatever value the user input.