> <CFSET CutLength=30>
> <CFSET MyString="sssssssssssssssssssssssssssssssssssssssssssssssssssssss">
> <CFLOOP Condition="Len(MyString) GT CutLength">
>       <CFOUTPUT>#Left(MYString,CutLength)#</CFOUTPUT>
>       <CFSET MyString = Right(MyString,Len(MyString)-CutLength))>
> </CFLOOP>
>
> Or something like that.

This method won't be intelligent about words, but it will work.

If you want it to look snazzy, then you'll want to mess about with checking
when a word ends, and only put up to the end of the last full word.

That's as long as it's a sentence and not just a lump of characters/numbers.

I had some code to do this, but I'll have to dig it out - which may take
some time (which I don't have much of these days)

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to