Forum Moderators: open
Dim teaser, index, strText
strText = "This is your article. This is your article. This is your article. This is your article. This is your article. This is your article. This is your article. "
strText=Replace(strText," "," ")
for index =1 to len(strText)
if mid(strText,index,1)= " " then
words = words+1
end if
if words=24 then
teaser = left(strText,index)
end if
next
Response.write teaser