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

In what way program "hello world" you can write in vbscript?

655


Explain about the functionality of vb script?

576


Explain about arrays in vb script?

608


What is the use of the instr function?

585


Explain few date functions in vbscript?

616






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

684


In html file what is an ideal position to include vbscript?

815


Can automation testing find ssame no. of bugs what we can find by manual testing?

1474


What is the purpose of regexp object in vbscript?

559


What are the different types of operators and their order of precedence?

574


What is the use of option explicit in vbscript?

546


write a program to display configuration of a local system with the help of vb script.

1693


what is resorceallocation

1776


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1591


Explain the .wsf files?

533