how to write basic programs in VB Script like addition,
multiplication?
Answer Posted / pravati
Call sum(x,y)
Function sum(x,y)
x=cint(inputbox ("enter a no"))
y=cint(inputbox ("enter a no"))
z=inputbox("enter the value")
Select Case z
Case "+" msgbox x+y
Case "-" msgbox x-y
End Select
End Function
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how to comvert 120 into one hunderd twenty rupees only and vice varsa
What is the purpose of the err object in the vbscript language?
Explain some uses of vb script?
Explain about operator precedence in vb script?
What's the difference between vbscript and vb.net?
What is the difference between function and procedure?
Mention what is variant in vbscript?
How to Enter Values on the Command promt using VB script
How to capture a runtime error in vbscript?
How will you get the exponent of the given number in vbscript?
Explain about arrays in vb script?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?