View Single Post
  #3  
Old 09-06-2010, 06:55 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: "Firstname, Lastname": Can you count characters?

Hi Ralph,
Thank you very much for the response,

However, I don't really want to truncate, as such. I would rather count how many characters there are and only display the first name, if the total is greater than a given value.

So, if someone's name was 'John Smith', that would display in full. But if someone else's name was 'Hubert Wolfeschlegelsteinhausenbergerdorff', It would only display 'Hubert'.

(If the characeter limit was 30.)

I hope this makes sense?
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote