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
hi viewers, tell me,what is scripting and programming, define and difference...pls
suppose we have ten members of a physical file but we want the output of last 5 members only.how to achieve that?
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
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
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.
what is session state?
sample code for data transfer between two r/2 systems and r/3 systems?
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
how do i add a column dynamically in a table by using java application?
How do i find out the number of parameters passed into function?
why we use abstract word in abstract window toolkit in java language.
Tag for turning an image into a hyperlink is
what is the purpose of checked Menu options
the systematic access of small computers in a distributed data processing system is referred as?
how CLR identify vb file?