' 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'
'
so i will press thanksstrcpy(old_server_name, "UltraPGNoob Server"); // can be any other thing you want to name it

// Sample for String::Copy()
using namespace System;
int main()
{
String^ str1 = "abc";
String^ str2 = "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 );
}
/*
This example produces the following results:
1) str1 = 'abc'
2) str2 = 'xyz'
Copy...
3) str1 = 'abc'
4) str2 = 'abc'
*/