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

X=10,Y=20 you need to swap the numbers without using a
third variable?

Answer Posted / ramyashetty

'a and b are two variables ; Following code swaps both number and string inputs

a = Inputbox("Enter a")
b = Inputbox("Enter b")


a = a + b

b = left(a,(instr(a,b)-1))
a = Right(a,(len(a)-len(b)))

msgbox "b ="&b
msgbox "a = "&a

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

banking domain description for software tester for interview

3924


How to handle dynamic objects in quicktest professional (qtp)?

949


Explain step generator in qtp?

1112


Tell me one scenario, the complex functionality you have automated in your project?

1982


In Remote acess server how u run a test?

1726


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1881


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

2105


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

3863


How would you export a script from one pc to another in qtp?

1109


Explain the terms test and business component?

1029


Explain quicktest professional (qtp) testing process?

1023


How to use descriptive programming?

1147


When you open QTP, how many sheets you can see?

1081


What is accessibility check point?

1096


When to use shared and local object repository?

1082