I’m scanning through all characters in a textbox. Then the program counts how many of each character is in the textbox. Here’s the code which adds all characters to a list:
For each c as char in TxtBox
list.add(c)
Next
Everything’s working fine, except this will also add returns to the list, which I don’t want. I thought I could write like this:
If c <> chr(10) Then
list.add(c)
End If
…but it’s not working. Any ideas?
You would also need to exclude chr(13). 10 = new line, 13 = carriage return.
For each c as char in TxtBox
Give that a shot.