This content has been marked as final. Show 3 replies
After you do your Left( ) function, you're left with a space-delimited list. The code below will give you a whole word at the end.
That's simple, but very smart.
"jdeline" <email@example.com> wrote in message
> After you do your Left( ) function, you're left with a space-delimited
> The code below will give you a whole word at the end.
> <CFSET foo = Left(longText, 400)>
> <CFSET bar = ListDeleteAt(foo, ListLen(foo, " "), " ")>
I like this FullLeft function...
Evangelista Design / Evangelista Consulting, inc.
Custom Small Business Website Solutions
"YC" <firstname.lastname@example.org> wrote in message news:email@example.com...
> Please help us polish the "left" function. For the search result, we are showing only 400 characters in the page with
> #left(search_result, 400)# ... function. The problem is the 400 count doesn't exactly cut the content by words, so a lot of
> them are displayed as incomplete words. Is there a way to prevent this?