how to increasing the numbers in a given text box
please write a vb script
Answer / Vijay Sharma
To increment the value in a TextBox by one using VBScript, you can use the following code:
Function IncreaseValue()
Dim txtBox, intCurrentValue, intNewValue
Set txtBox = Document.getElementById("yourTextboxID")
intCurrentValue = txtBox.value
intNewValue = intCurrentValue + 1
txtBox.value = intNewValue
End Function
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between Active screen and movie screen recorder in QTP 9.2?
What is the difference between function and procedure?
how to set one column as primary key in QTP and fetch values accordingly
* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?
How to open a file. What is the perpose of true and false mode there?
write a program to display the system specifications of client system with the help of vbScript.
write a Vb script to find a whther a selected drive exits.
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
how to find number of characters(letter a) in the sentence Rain Rain Go away
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
what does create object actually do when you call it in vbscript?