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

Answer Posted / dipanjan

Dim a, b, c, d As Integer
a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
d = Int(a) + Int(b) + Int(c)
MsgBox (d)

for multiplication:

d = a * b * c
MsgBox (d)

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are arrays declared in the vbscript language?

760


What are the advantages of vbscript?

853


Explain the string concatenation function in vbscript?

735


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2057


How do you declare a variable in vbscript?

834


what is the use of QCUtil? explain with one example?

6655


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

1107


What is the difference between for loop and while loop?

796


What are the environments supported by vbscript language?

699


when we use filter funtiom invb script(QTP)

2496


Does VB/Win make standalone .EXE files?

3128


How regexp.execute method works?

820


Which operator is used to concatenate the 2 values in the vbscript language?

784


Differentiate javascript and vbscript?

763


Which operator can be used to do an xor operation in vbscript?

968