Character counter

Lanie

Beta member
Messages
2
Hi,

I have an holiday assignment and I am still very new in programming.
One part of the program is asking for a character counter. A sentence must be typed into an input field. When a Count button is pressed the system must count how many times each character is in the sentence. Only characters that are present in the sentence must be counted and displayed in a listbox. (Example A:2)

I need help in how to count the letters in the input field and how to display it into a listbox as in the example (A:2 or O:1).
 
StrText = "How long is this text?"
l = StrText.Length


Hope that helps...
I didn't write the delcaration of variables, or anything like that since it's an assignment, but that should be most of it done for you!!
 
Back
Top Bottom