Thank you Ian and Azadi
Meanwhile I was able to put together what I need...
Thanks again & regards
<cfset string = "The quick brown fox jumped over the lazy dog">
<cfset myCharCount = 15>
<cfset subString = "">
<cfset myCount = 0>
<cfloop list="#string#" index="word" delimiters=" ">
<cfset subString = subString & word & " ">
<cfif len(subString) GT myCharCount>
<cfset myCount = myCount + 1>
<cfoutput><div style="border: thin solid Black;"
id="#myCount#">#subString# ...</div></cfoutput>
<cfset subString = "">
</cfif>
</cfloop>
<cfoutput>
<div style="border: thin solid Black;" id="#evaluate(myCount +
1)#">#subString#</div>
</cfoutput>
|