write a vb script to display calculator using case statement?
Answer / mudaseer
a=cint(inputbox("enter the value"))
b=cint(inputbox("enter the value"))
vchoice=inputbox("enter the value")
select case vchoice
case "+" msgbox a+b
case "-" msgbox a-b
case "*" msgbox a*b
case "/" msgbox a/b
case "\" msgbox a\b
case "mod" msgbox a mod b
case "&" msgbox a & b
case "^" msgbox a ^ b
case else msgbox "invalid"
end select
by mudaseer20@gmail.com
| Is This Answer Correct ? | 16 Yes | 2 No |
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 to find the textfile in the folder and copy file from one folder to another folder useing parameterigation in QTP
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
i need to sort the data using qtp script for this how i need to write a qtp script
Explain the support of asp for vb script functionality?
How many types of operators are available in the vbscript language?
how to write function to validate the number of characters entering into the text box?
How to get the background color of a weblist?
How to declare an array in vbscript?
what is the difference between modular and data and keyword driven framework
write a program to display configuration of a local system with the help of vb script.
1)How to test whether items in a weblist are in alphabetical order or not?