Skip to main content
Inspiring
March 5, 2007
Question

handling last name foramt

  • March 5, 2007
  • 1 reply
  • 285 views
Hello, the letter that needs to be generated has a "TO" section and a person's last name should be started with "uppercase" and rest of them is printed "lowercase", but some cases are treated differently. (Users need to input the last name before they generate the letter).
But they input too many different formats of last name and it is a nightmare to catch those formt to print out the first letter to be uppercase and some cases the second letter should also be capital..
For example, last name O'Nell. In this case, it should be print out "O" and "N" all capital. Some has Hong-Sang.
Look at these last name that users entered.
RIVERA COLON
DAVIS JR,
KEMBALL - COOK
EARWOOD III
St. Andrews
HALL JR.
PURTILL (SMITH)
MOORE 11
COUNTRYMAN JR.,
Santos, Jr.
O NEILL
O'NEILL
omg, I have no idea how to print out thoses last name in a proper format on "TO" section on the letter.
maybe I need to prevent them to inputting a wrong last name format, but what are the right last name format then?
Does ColdFusion has something that can handle this situation? please advise me.


This topic has been closed for replies.

1 reply

Inspiring
March 5, 2007
please discard this second posting. this is the same as the previous one. I accidently pressed the submit button twice before posting due to the internet delay. I do not know how to delete the posting here.