Brian Dunning's FileMaker Custom Functions

CalculateInitials ( ~fullName )

Calculate the initials of a full name

  Be the first to rate this function Log in to vote

Thomas DS   Thomas DS - Show more from this author
kamalion
https://kamalion.io

Share on Facebook Share on Twitter

  Sample input:
CalculateInitials ( "Jean-Baptiste Grenouille" )
  Sample output:
JG

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Parameter: ~fullName
Result type: text

 

Comments

Fabrice Nordmann   Fabrice Nordmann, 1-more-thing
Jan 7, 2023
Hi, another version of this without recursion would be:
Filter ( Proper ( ~fullName ) ; Upper ( ~fullName ))
and if you would like to have only 1 initial for compound names (as in your example):
Filter ( Proper ( Substitute ( ~fullName ; "-" ; "" ) ; Upper ( ~fullName ))
 

Log in to post comments.

 

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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 19 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: