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

Answer Posted / chandan

'script for adding two numbers
option explicit
dim num1,num2,result
num1=200
num2=300
result=num1+num2
msgbox result

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1769


Explain what is loose binding? Why is it not a good practice to use it?

792


How are arrays declared in the vbscript language?

751


why variable name should not exceed 255 characters?

1983


How will you get a subset of a array in vbscript?

753


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

770


1. How do declare public variable in vb scripts?

1772


What is the use of the recordset object and which statement is used to create such an object?

739


How many types of procedures are available in the vbscript language?

731


Explain the arrays in vb script?

799


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

788


Explain the constants in vbscript?

740


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

952


What methods are used to create text files and open text files in the vbscript language?

737


How to open browser in vb script?

812