mickey229
May 27th, 2006, 02:22 AM
does any one has code for word count?
Please help
Thank you
Please help
Thank you
|
Click to See Complete Forum and Search --> : word count from text field (C# dotnet) mickey229 May 27th, 2006, 02:22 AM does any one has code for word count? Please help Thank you Alsvha May 29th, 2006, 07:21 AM It can be done in a number of ways depending on what you need it for. I'd say an easy and simple implementation would be to count the amount of whitespaces (space, returns if allowing that etc) in your textfield and add 2 to the result for a word count. Another way could be to take the string, split it on your whitespace and count the lenght of the array. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |