Thu Mar 31, 2011 12:02 am
<%
'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
%>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.