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

hello
which ever the code you have written will be doing
cancatenation by accepting as characters.
if you provide inputs as a="abc" and b="xyz" then output
will be "abcxyz" right.

if you add two numbers you can go for this below code
function sum(a,b)
c=a+b
msgbox c
end function

calling the function
sum 2,3 then you will get output as 5

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to idetfy which test cases are automated?who will deside that plz tell me

2016


Explain the terms test and business component?

1018


what type of automation is follwed in the project?

1921


What are the different properties of an web object

1906


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1999


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

2195


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1946


How does you test a weblink which is changing dynamically?

1005


Can we Test Welcome Screens and Process Images with QTP

1937


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1745


Is it possible to use two instances of UFT on the same machine? If not why?

1117


What are the different types of action?

989


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2417


how to disable the pop ups through QTP using a script

2271


Explain the types of properties that quick test learns while recording?

1015