InputBox function in QTP











Sponsored Links:


The InputBox function displays a dialog box containing a label. The data you expect from the users, an OK button

Syntax
InputBox(prompt,title,default,xpos, ypos, helpfile, context)
Code
Dim MyInput
MyInput = InputBox("Window Description", "Window Title - InputBox Function ", " Enter Ur Name", 50, 60, "Enter String Value", 20)
'(or)
MyInput = InputBox("Enter Ur Name")
MsgBox MyInput

No comments: