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 / 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


Please Help Members By Posting Answers For Below Questions

How to find Operating system information using QTP script?

952


Are Shared ORs read-only?

1011


How to handle the exceptions using recovery secnario manager in quicktest professional?

1072


explain keyword driven framework with banking domain?

1958


please any one can explain the keyword driven framework. with gmail example.

2047


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

2108


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

2258


what is keyword driven testing in qtp?n how is it useful?

1858


What are the different types of qtp test assets and their extensions?

1085


How to test background color and dynamic images during run time can you put the check point for moving objects?

1863


Can launch two instances of qtp on the same machine?

1019


What are the check points can be inserted without recording?

1018


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

3747


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1873


what function you write to do database testing with the help of qtp?

1768