Just treat the string as a list, use the list function and specify " " as
the delimiter (or " .,-" etc.

--- Ben
 

-----Original Message-----
From: Nomad [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 3:23 PM
To: CF-Talk
Subject: Getting first 10 words from a string.

Hello!
Need help.

How do I get the first (say 10) words from a string?
Problem:

A query to my database returns a column (details) that is of memo type. I
want to limit the display of this column to the first 10 words only.
 I had a quick look at the CFML documentation for string functions but could
not find any that works with words (not characters).
I am obviously missing something. What is it?

Thanks a lot.

Ben




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225127
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to