[VB.NET]Swaping 06-24-2011, 07:42 AM
#1
I made this function in which you can switch values of 2 dimensions. Its not what you can call Hard but i thought sharing it wont hurt 
How it works?
It can work for a types including string, integer, byte, char, long, short, decimal, ...

Code:
Public Function Swap(ByVal First, ByVal Second) As String
Dim T
T = First
First = Second
Second = T
Return First & " " & Second
End FunctionHow it works?
Code:
MsgBox(Swap(20, 10))Code:
MsgBox(Swap("hello", "world"))It can work for a types including string, integer, byte, char, long, short, decimal, ...
Pierce the life fibers with your drill.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)