+92 332 4229 857 99ProjectIdeas@Gmail.com

String.Copy function (Vb.net)


String Copy function
String.Copy() function is used to copy the value of one string to another.
System.String is the library for this function.


Example
Dim str1 As String = "Saad"
Dim str2 As String = "Saulat"
str2 = String.Copy(str1)
MsgBox(str2)
Result
Initially str1 contains the value Saad and str2 contains Saulat, but after the result of this copy from str1 to str2, str2 now contains the value "Saad".


Related articles

0 comments: