Hi I need help with this, supposed to be when i input a string example "ab12*&" there are three output
Number of Letters: 2
number of Integers: 2
number of Special Character: 2
but my program shows the number of character
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As Integer
Dim stri As String
Dim int As Integer
Dim str As Integer
Dim spe As Integer
stri = TextBox1.Text
For x = 0 To stri.Length - 1
x.ToString()
If IsNumeric(x) = False Then
int += 1
ElseIf IsNumeric(x) = True Then
str += 1
Else
spe += 1
End If
Next
Label5.Text = int
Label6.Text = str
Label7.Text = spe
End Sub