I am new to VB and have a question. I am writing a console application that takes two strings, each entered by the user, and displays them to the screen like so:
Console.Out.WriteLine("The value of the the first string BEFORE swapping is '{0}' and the value of the second BEFORE swapping is '{1}'", firStr, secStr)
(firStr, secStr are my string values)
now my question is, i have to call a procedure that will swap the two strings and display them to the screen like so:
Console.Out.WriteLine("The value of the the first string AFTER swapping is '{0}' and the value of the second AFTER swapping is '{1}'", firStr, secStr)
I need help getting the procedure correct to swap the two strings, any suggestions?
I have got this so far:
Sub SwapStrings(ByRef fStr As String, ByRef sStr As String)
and all code I have tried thus farfor the swap will not work, can anyone help?