Following code get the number of code in a specific string .
Code:
<% 'string value to be check strTest= "This is our sample text for this example" 'splitting the string strTest strArrayTest= Split(strTest ," ") 'get number of words intNumWords= Ubound(strArrayTest) 'display the counts Response.Write "There are<b> "& intNumWords&"</b> words in "& strTest %>
_________________ M. S. Rakha, Ph.D. Queen's University Canada