TrimValues ( listOfValues )

Version 2

     

    Custom Function

     

    Compatibility
    Creator
    Mac OS X, Windows
    Ward Clark
    FMP 7, 8, 8.5, 9, 10, 11, 11
    Dancing Bears
    Web: Yes
    File Type: None
    Server: Yes
    FileSize: 0 kilobytes
    http://www.dancingbears.biz

    Description

    Removes empty values from the beginning and end of a value list.

     


    Code

    Let ( [

    spaceToken = "«‡»" ;

    values = Trim ( Substitute ( Substitute ( listOfValues ; " " ; spaceToken ) ; "¶" ; " " ) ) ;

    values = Substitute ( Substitute ( values ; " " ; "¶" ) ; spaceToken ; " " )

    ] ;

     

    values

     

    )

     

    Sample Input

    Sample Output
    TrimValues ( “¶¶¶abc¶¶xyz¶¶” )

    abc¶¶xyz

    Developer's Notes

     

     


    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.