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

I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1801


Can u describe what kind of testing are for OTC derivates by banks.

1668


How do you declare a variable in vbscript?

623


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

576


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

532






How regexp.execute method works?

588


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1243


who will create the object?

1721


What is vbscript procedures?

600


When are redim statement and preserve keyword used in the vbscript language?

591


What is the use of option explicit in vbscript?

542


How are arrays declared in the vbscript language?

537


why do u choose to go for testing why cant for devoloping

1586


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1660


What are the special sub-types in vbscript?

546