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

Answer Posted / ashok

DIM A
A=INPUTBOX("enter a val")
DIM B
B=INPUTBOX("enter b val")
DIM C
DIM D
C=A+B
MSGBOX ("C is" &C)

C=INT (A)+INT (B)
MSGBOX ("C is" &C)

D=A*B
MSGBOX ("d is" &d)

Is This Answer Correct ?    16 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the support of asp for vb script functionality?

528


What is the use of the instr function?

579


Differentiate javascript and vbscript?

567


Explain the filter expression?

627


What is byref and byval parameters in vbscript?

604






Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1721


What is difference between vbscript and vba?

608


filter the array values without using filter function?

1655


1. How do declare public variable in vb scripts?

1577


How you can call vbscript functions?

577


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1769


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


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1619


what is the standards used for writing the script in QTP

1888


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2020