All pastes #478519 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-09 06:49 UTC
rendered paste body
 Dim i As Integer
        Dim LetterCount As String = 0
        Dim strText As String
        Dim letter As Char

        strText = "Debugging" & LetterCount

        For i = 1 To strText.Length + 1
            letter = strText.Substring(0)

            If letter = "g" Then
                LetterCount = LetterCount + 1
            End If
        Next
        rt1.Text = "G appears" & LetterCount & "times"
    End Sub
End Class