hi,
i was adding the two numbers in qtp scripts but i didn't get
the answer. see my below script, i dont know wht is the problem.
i passed the value a=3 b= 2, i got the ans 32 instead of 5.
i thing the problem is to be c = a+b
my mail id karthis4u@gmail.com
Dim a, b, c
a = inputbox("enter the a ")
b = inputbox("enter the b ")
c = a + b
print c
Answer Posted / qa
hi
Use CINT Function:: correct code is
Dim a, b, c
a =cint( inputbox("enter the a "))
b =cint( inputbox("enter the b "))
c = a + b
msgbox c
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Can launch two instances of qtp on the same machine?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
How do we handle run-time errors?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
How will you handle java tree in qtp?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
How to interact tool & application build in QTP?
Explain about business process component? types and usage?
Differences between quicktest professional (qtp) and winrunner?
Is qtp supports uni-code?
How to capture all the data of a webtable, weblist and combolist using QTP?
What is Associate Repository in QTP 9.2 ?