Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Output values? i want a practical example

1749


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

2036


what is profile tool?

2219


How is the Bitmap checkpoint different from Image checkpoint?

1110


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

960


Can we create user defined functions in qtp?

994


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

2077


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)

1970


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1930


what testplan contents and what test strategy contents,what is the diff b/w them

2154


Did the scripts need lot of maintenance? If yes, why?

3811


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

2042


give me an example where u used good judgement and logic in solving a problem

3854


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

2112


explain abt dyanamic changing object with example?

2324