In fact, that didn't work exactly how I thought it would :OP

Try this instead

<cfset str = "Adrian Lynch Jnr">

<cfoutput>
<p>#Left(str, Len(str) - Len(ListLast(str, " ")) - 1)#</p>
</cfoutput>

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 22:00
To: CF-Talk
Subject: RE: OT-SQL matching


If it's always a one word suffix then try

#Left(yourQuery.yourColumn, Len(ListLast(yourQuery.yourColumn, " ") + 1))#

Not tested but it looks right.

Ade

-----Original Message-----
From: Eric Creese [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 21:48
To: CF-Talk
Subject: OT-SQL matching


For a CF page I am doing I need to out put matched results. However in one
table I have last names with a suffix like "MOLINA JR" and in another table
the last name and suffix are in different columns. I need to strip out the
suffixes as well as the preceding space in the first column. Any ideas. I am
trying a few thing and it is not working.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196199
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to