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

Answer Posted / chandra

'addition
DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
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 ?    50 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1342


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2500


Does VB/Win make standalone .EXE files?

2903


how does vb script help in web page designing? explain with example.

1590


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

635






What are the advantages of vbscript?

648


can anyone tell me the procedure of interview held in applabs

1755


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1577


Explain about the functionality of vb script?

576


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

569


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1826


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 are class variables?

620


What are keywords in the vbscript language?

527


Mention how to access array data?

515