|
-
Oct 20th, 2009, 08:16 AM
#1
Thread Starter
Registered User
debugging help
the next stage in the tutorial is debugging, ive got the code theyve said and like they said, i cant find whats wrong and am saying to myself that it should work LOL
heres the code
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"
End Sub
thanks in advance
can u spot whats going wrong please???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|