here's an example that you could use
source : String.Copy Method
Credits goes to Microsoft.com (and Google?)
and don't thank me but thanks microsoft.com
oh it's for vb if you're doing it in vb.
Code:
' Sample for String.Copy()
Imports System
Class Sample
Public Shared Sub Main()
Dim str1 As String = "abc"
Dim str2 As String = "xyz"
Console.WriteLine("1) str1 = '{0}'", str1)
Console.WriteLine("2) str2 = '{0}'", str2)
Console.WriteLine("Copy...")
str2 = [String].Copy(str1)
Console.WriteLine("3) str1 = '{0}'", str1)
Console.WriteLine("4) str2 = '{0}'", str2)
End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'1) str1 = 'abc'
'2) str2 = 'xyz'
'Copy...
'3) str1 = 'abc'
'4) str2 = 'abc'
'
Credits goes to Microsoft.com (and Google?)
and don't thank me but thanks microsoft.com
oh it's for vb if you're doing it in vb.
