how to write basic programs in VB Script like addition,
multiplication?

Answer Posted / ashok

DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
DIM C
DIM D
C=A+B
MSGBOX ("C is" &C)

C=INT (A)+INT (B)
MSGBOX ("C is" &C)

D=A*B
MSGBOX ("d is" &d)

Is This Answer Correct ?    16 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the smallest subscript of an array in vbscript?

823


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

631


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

587


How can you destroy an object in vbscript?

647


Explain some uses of vb script?

560






How to make sure that items in a wintree are sorted al?

2360


write any ttest cases using check points and parameterization

1825


Explain about constants in vb script?

581


Which keyword is used to declare a variable in the vbscript language?

539


What is the use of the date function in the vbscript language?

573


Mention characteristics of sub procedures?

584


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 ?

1558


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1053


What are keywords in the vbscript language?

531


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1525