Trim Name Concatenations

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 9, 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .67 megabytes
    http://www.formulationspro.com

    Description

    I frequently run across the issue of rebuilding a client's existing system where they need to concatenate the contact's title, first name, middle name, and last name. However, due to poor data entry sometimes the title and/or middle name are missing, there are extra spaces in the fields, and even carriage returns. Rather than creating a complex conditional statement to check for all possible combinations there is a much easier calculation that gets it right no matter how poorly the data entry has been performed.

     


    Code

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.