| ASP - Tutorials - Count Words in a Sentence |
Drive Clone
|
<%
'the string to check
strText = "This is our sample text for this example"
'split the strText
arrText = Split(strText ," ")
'store the amount of words into intWords
intWords = Ubound(arrText )
'display how many words are in the sentence
Response.Write "There are " & intWords & " words in " & strText
%> |
| What does it do? |
|
This script will split a string on spaces and count the number of words in a string. FREE ASP |
| |
| Features |
| Added by |
Added |
Downloads |
Rating |
Popularity |
rpgivpgmr |
3:44:55 AM Thursday, May 31st 2007 |
97 |
not rated |
                            |
| |
| |
| About the file |
| Size |
Download |
Rate It |
|
359 KB
|
 |
|
|
| Comments |
|
| |
| Add your comment |
|
|
| |
| Contacts |
Report Abuse |
|
| |