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

Difference between delegates and Events?

2180


what is the work of 1tier,2tier,&ntier? Plz Explain it!

2463


Q1.Write a C program which asks the user for a number between 1 to 9 and shows the  number. If the user inputs a number out of the specified range, the program should  show an error and prompt the user for a valid input.

2711


1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?

3672


Need provab technical test questions

2840


can we retrieve only integer/String type columns from a table,if yes how?

1924


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

2167


Give examples of macro quoting function?

1978


what are the advantages of sap on other software ?

2158


what is web service in java? have u use before.

2145


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

3644


what is the extension of SPDS Dynamic cluster tables?

2154


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

1043


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number

1155


i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......

2164