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 / deepak singh
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
send mail if you have any query:
ccna_deepak@yahoo.com
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
Output values? i want a practical example
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
what is profile tool?
How is the Bitmap checkpoint different from Image checkpoint?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
Can we create user defined functions in qtp?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
what testplan contents and what test strategy contents,what is the diff b/w them
Did the scripts need lot of maintenance? If yes, why?
Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach
give me an example where u used good judgement and logic in solving a problem
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?
explain abt dyanamic changing object with example?