How to VB.NET String.Clone()


VB.Net-Informations.com
SiteMap

The VB.NET String Clone() method returns a reference to this instance of String.

Public Function Clone() As Object

Returns:

Object : Return the instance of the String


Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        Dim str As String = "Clone() Test"
        Dim clonedString As String
        clonedString = str.Clone()
        MsgBox(clonedString)
    End Sub
End Class

When you run this program you ill get the same content of the first string "Clone() Test"



  • Sponsored Program








More Source Code :
|  Home  |   VB.NET  |   C#  |   ASP.NET  |   SiteMap  |   Terms of Use  |   About  |