Bilgisayar Bölümü ASP Kod ve Script Arşivi


Count words in a sentence

This shows how you could count the amount of words In sentence.



<%
'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
%>

which gives you the following

ASP Kitabı

 

Faydalılar: Altın Fiyatları |Hediye Kolye | pırlanta fiyatları
Ana Sayfa  Sık Kullanılanlara Ekle   admin[at]bilgisayarbolumu.com | © 2006 - 2022 Bilgisayarbolumu.com