I need help. I am doing a project to count words in a Text box. But i cannot use that Split thing i searched about. I need to use flags but i can't figure a way to have it notice a flag true to false change. So far is this all i have...
I would appreciate ANY help. FAST hehe thanx!
*CAT*
Visual Basic:
Dim i As Integer
Dim bolflag As Boolean
Dim strChar As String
Dim strWords As String
Dim intCount As Integer
strWords = txtWordsToCount.Text
bolflag = False
For i = 0 To strWords.Length - 1
strChar = strWords.Substring(i, 1)
If strChar = " " Then
bolflag = True
End If
'If bolflag = False Then
'intCount += 1
'End If
Next
*CAT*
Last edited by a moderator: