how to increasing the numbers in a given text box
please write a vb script



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

Post New Answer

More VB Script Interview Questions

What is difference between Active screen and movie screen recorder in QTP 9.2?

1 Answers  


What is the difference between function and procedure?

1 Answers  


how to set one column as primary key in QTP and fetch values accordingly

1 Answers   Ford,


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


How to open a file. What is the perpose of true and false mode there?

1 Answers  


write a program to display the system specifications of client system with the help of vbScript.

0 Answers  


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


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)

1 Answers   iFlex,


how to find number of characters(letter a) in the sentence Rain Rain Go away

4 Answers  


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..

1 Answers  


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

1 Answers  


what does create object actually do when you call it in vbscript?

1 Answers   Cap Gemini,


Categories