I'm doing a "debugging" section on a guide and i can't work out why this doesn't work:
Dim i As Integer
Dim lettercount As Integer
Dim strText As String
Dim letter As Char
strText = "Debugging"
For i = 1 To strText.Length - 1
letter = strText.Substring(0)
If letter = "g" Then
lettercount = lettercount + 1
End If
Next
TextBox1.Text = "G appears " & lettercount & " Times"
I know i have to advance the letter it is checking, but i don't know how? I am a n00b if you hadn't already guessed
B@
Dim i As Integer
Dim lettercount As Integer
Dim strText As String
Dim letter As Char
strText = "Debugging"
For i = 1 To strText.Length - 1
letter = strText.Substring(0)
If letter = "g" Then
lettercount = lettercount + 1
End If
Next
TextBox1.Text = "G appears " & lettercount & " Times"
I know i have to advance the letter it is checking, but i don't know how? I am a n00b if you hadn't already guessed

B@