write a vb script to display calculator using case statement?
Answer Posted / 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 |
Post New Answer View All Answers
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.
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 is the use of option explicit statement?
Is VB Script Case sensitive or Case insensitive?
Explain about .wsf files?
How to replace junk code recorded by QTP with a mall function.
When are redim statement and preserve keyword used in the vbscript language?
what is diff between static and dynaic arrys?
Explain the .wsf files?
How will you convert a string to lower case string using vbscript?
What are class variables?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
What is the use of the date function in the vbscript language?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?