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

I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm?

Answer Posted / reddz

try this way

k=cint(environment.value("a"))+cint(environment.Value("b"))
msgbox k

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1956


Shall we add Local Repository to shared object repository,if yes,how we add

7485


What are the views available in qtp?

1022


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

1045


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

2053


What are the advantages of Object Repository?

1093


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

2057


Define object spy ?

1011


before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

8167


how to evalute defects in QTP script?

1993


Why do we use breakpoints in QTP?

1057


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

1085


Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

1807


Does quicktest professional (qtp) is unicode compatible?

1013


Does Low-level recording capture mouse movements?

1041