Search Tools Links Login

Count Words In a Texbox


This code will count the number of words in a textbox. A friend asked how to do this so I thought I'd post my reply.

Original Author: Oliver French

Inputs

Any string.

Assumptions

Assumes a word is any set of characters separated by a space. The code can be easily modified to use any delineators.

Returns

The number of words in the string.

Code



Untitled Document




Enter the string you wish counted:




  


 



  


 





About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 82 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.