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

Explain few date functions in vbscript?

828


Mention how to access array data?

709


Is VB Script Case sensitive or Case insensitive?

868


Both Static and dynamic arrays are handled by VB script. Is it true?

853


What are the 2 ways in which a variable can be declared in the vbscript language?

824


What is sql loader? Explain the files used by sql loader to load file?

887


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

760


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1742


How will you reverse a string in vbscript?

868


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

850


Explain the asc function?

709


Mention what is select case statement?

758


How will you convert a given number to long in vbscript?

694


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

1949


How will you check that a variable is an array in vbscript?

773