Tipe data yang dihasilkan adalah char.
Contoh:
Design UI
Code
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim str As String = TextBox1.Text
Dim singleChar As Char
singleChar = str.Chars(3)
MsgBox(singleChar)
End Sub
Runtime
Click here if you like this article.
0 Comments