Software Venture Consulting

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

fnNameParser ( name ; type )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.0  (41 votes)
  Discuss this Custom Function

Andrew Butt, Drewsol
http://www.drewsol.com

c. 2012 Drewsol. This CF parses specified name parts (first, last, middle) from a single name field for the flexibility of sorting and/or display. fnNameStraight now handles Spanish names, and some middle-eastern names.

Sample Input:
fnNameParser™ ( "Martin Luther King, Jr." ; "lastfirstm" )

fnNameParser™ ( "Martin Luther King, Jr." ; "initials" )

fnNameStraight ( "Fransisco de la Hoya" ; "lastfirst" )

fnNameParser™ ( "Andrew Smith-Jones" ; "last" )
Sample Output:
King, Martin L.


MK


de la Hoya, Fransisco


Smith-Jones


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

c. 2012 Drewsol. This CF (procedurally) parses specified name parts (first, last, middle) from a single name field for the flexibility of sorting and/or display. fnNameStraight now handles Spanish names, and some middle-eastern names.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

5 most recent comments | Show all 13 comments

I added a fix that keeps hyphenated names intact.

Drew Wesley, Los Angeles, CA
October 08, 2013 4:28pm

How does this function know that "de la Hoya" is the last name?

I import a spreadsheet that contains a field, FullName that includes some records in which the last two words in FullName are the last name so this function would be helpful but I'm curious to understand how it works.

For example, assume FullName = John Van Heusen. The last name is "Van Heusen."

Scott C, Saluda, North Carolina
September 14, 2015 6:32am

Good BUT why you throw away the . (points) of First name(s) ?

or did I miss on something, is the type parameter a single one, of several?

I see no functionality to retain the points...

Example

P.H.J. Cuypers

should become

Cuypers, P.H.J.

leaving out the points (is NOT done in any library or documentation environment)

Your function is greatly needed, but please react...or I have to continue trying to write my own one...

Thank you

Tjebbe van Tijen, Amsterdam
February 11, 2016 10:16am

Looked into your function a bit more...

I have added the . (point) as something to retain

that helped a bit, but still it does what seems to be a typical FPM flaw

P.H.J. Cuypers

with the parameter LastFirstM

becomes: Cuypers, P.H.J

indeed the point behind the J in the original has gone

also I noticed that you may live in the USA without people having names like

me Tjebbe Willem van Tijen

you rfuncion makes this of it

Tijen, Tjebbe W.

Can NOT be used...

so maybe I have been to optimistic one needs many, many rules to handle names (I have been an academic librarin for decades... so I go back to my own attempt...

though of course I appreciate your effort...

Tjebbe van Tijen, Amsterdam
February 11, 2016 10:44am

Hi Tjebbe van Tijen,

I didn't get notified of your post until I checked randomly (I changed my email a year ago). Let me know if you still need help.

Drew Wesley, Los Angeles, CA
March 19, 2016 6:18pm

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 8 + 2 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions