write a vbscrpit to swap values
Answers were Sorted based on User's Feedback
Answer / manjunathareddy
Dim oNum1
Dim oNum2
oNum1=Cint(InputBox("Enter the First number here"))
oNum2=Cint(InputBox("Enter the Second number here"))
Msgbox "Before swapping numbers are"&" "&oNum1&" "&oNum2
oNum1=oNum1-oNum2
oNum2=oNum1+oNum2
oNum1=oNum2-oNum1
Msgbox "After Swaping numbers are"&" "&oNum1&" "&oNum2
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / monika
Dim oNum1
Dim oNum2
oNum1=Cint(InputBox("Enter the First number here"))
oNum2=Cint(InputBox("Enter the Second number here"))
Msgbox "Before swapping numbers are"&" "&oNum1&" "&oNum2
oNum1=oNum1+oNum2
oNum2=oNum1-oNum2
oNum1=oNum1-oNum2
Msgbox "After Swaping numbers are"&" "&oNum1&" "&oNum2
| Is This Answer Correct ? | 0 Yes | 0 No |
how to store charecters of HARIBABU Using arrays
Which function allows you to instantiate an object given its programmatic identifier or progid?
What are the special sub-types in vbscript?
What is the use of option explicit in vbscript?
What is the purpose of on error resume next statement?
how does vb script help in web page designing? explain with example.
How can you test font size, type and color using QTP tool?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
find the length of the string without using length function?
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below
How will you get a combined string from array of string in vbscript?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?