running character count 
Author Message
 running character count

I would like to display a running character count of the
length of text in a text box. The events don't reflect the
count until leaving the control.

Another option would be to limit the field length (it's an
unbound control) but I haven't seen a setting for that
either.

Thanks for the help.



Sun, 24 Jul 2005 04:22:36 GMT  
 running character count
In the controls OnChange event, use the following code:

 Dim intCharCount as Integer

 intCharCount=len(ActiveControl.Text)

Quote:
>-----Original Message-----
>I would like to display a running character count of the
>length of text in a text box. The events don't reflect
the
>count until leaving the control.

>Another option would be to limit the field length (it's
an
>unbound control) but I haven't seen a setting for that
>either.

>Thanks for the help.
>.



Sun, 24 Jul 2005 05:02:12 GMT  
 running character count

That worked great, and also gave me a new tool for a
different problem that I had.



Mon, 25 Jul 2005 03:54:03 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Counting characters as they are typed

2. counting characters in a string

3. COUNT OF CHARACTERS IN A MAIL

4. How to count the Reference Characters ?

5. Count occurances of a character string?

6. Ignore strikethrough text in document character count

7. Scanning text & objDoc.Characters.Count

8. variable character count

9. Characters.Count vs. ComputeStatistics

10. Characters count without space in VB.NET

11. Characters and Line Count

12. How to count only the characters in red?

 

 
Powered by phpBB® Forum Software