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

How to swap two String values without using a
third variable?

Answer Posted / andy

'Swapping two strings in vb.net
Private Function SwappStrings(ByVal str1 As String,
ByVal str2 As String) As String
str1 = str1 + str2
str2 = str1.Substring(0, (str1.Length -
str2.Length))
str1 = str1.Substring(str2.Length)
SwappStrings = "A is : " & str1.ToString & "And B
is : " & str2.ToString
End Function

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi viewers, tell me,what is scripting and programming, define and difference...pls

2017


suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?

2130


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

4351


hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com

1973


design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.

17924


what is session state?

2017


sample code for data transfer between two r/2 systems and r/3 systems?

2007


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1965


how do i add a column dynamically in a table by using java application?

2086


How do i find out the number of parameters passed into function?

2718


why we use abstract word in abstract window toolkit in java language.

2239


Tag for turning an image into a hyperlink is

2346


what is the purpose of checked Menu options

2494


the systematic access of small computers in a distributed data processing system is referred as?

3302


how CLR identify vb file?

3090