ToUpper例子

    Private Sub ToUpper_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToUpper.Click
        Dim nickName As String = "Coperator"
        Dim testToUpper As String = ""
        Dim testStartWith As Boolean = False
        testStartWith = nickName.ToUpper.StartsWith("C")
        MsgBox(testStartWith)
        testToUpper = nickName
        MsgBox(testToUpper)
        testToUpper = nickName.ToUpper
        MsgBox(testToUpper)
    End Sub

你可能感兴趣的:(ToUpper例子)