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 |
write script to open Gmail.com, and to write script for entering username and password and show whether the result as pass or fail
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
How can the spaces from the string be removed?
What purpose does ‘on error resume next’ serves?
Is VB Script Case sensitive or Case insensitive?
What variable can you use to share info across the whole application for one user?
what is test scenario?
What are lbound and ubound in the vbscript language?
Why is error handling required?
Explain How do you create a recordset object in vbscript?
how to acces the remote mechine using vb cript(QTP)
Mention what is the use of option explicit in vbscript?