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

Answer Posted / dev

1.addition
DIM A=10
DIM B=20
DIM C
DIM D
C=A+B
MSGBOX C (here output is 1020)

C=INT A+INT B
MSGBOX C (HERE OUTPUT IS 30)

D=A*B
MSGBOX D (OUTPUT IS 200)

Is This Answer Correct ?    84 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the scope of the variables using dim, public, and private keywords respectively.

724


Explain about vb script?

752


How will you release the memory acquired by an array variable in vbscript?

748


What are events in the vbscript language?

552


Mention what are the rules to name variable in vbscript?

540






Explain sga memory structures?

582


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.

1523


What are class events?

583


What are the properties of regexp object?

581


how to operate webobjects in a webpage using getobject function and then using generic methods?

2546


Mention what is variant in vbscript?

561


after medical test,when will be the police verification

1719


Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2035


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

556


Mention how to create a cookie using vbscript?

534