Roll Address

Version 2

     

    Custom Function

     

    Compatibility
    Creator
    Mac OS X, Windows
    Edward J. Zinkiewicz
    FMP 9, 10, 11
    EZ Solutions, Inc.
    Web: Yes
    File Type: FP7
    Server: No
    FileSize: ~ .06 megabytes
    http://

    Description

    Takes 6 potential parts of a mailing address with one instruction code to create a “rolled” version that contains no blank lines. The 6 parts include 3 lines of address, city, state, and postal code.

     


    Code

    Let (

    [ Separator = Case ( HTML = "HTML" ; "
    " ; "¶" ) ] ;

    If ( Trim ( Adr1 ) <> "" ; Adr1 & Separator ; "" ) &

    If ( Trim ( Adr2 ) <> "" ; Adr2 & Separator ; "" ) &

    If ( Trim ( Adr3 ) <> "" ; Adr3 & Separator ; "" ) &

    City & ", " & State & " " & PostalCode

    )

     

     

    Sample Input

    Sample Output
    Address 1, Address 2, Address 3, City, State, Postal Code

    Address with no blank lines

    Developer's Notes

    Stamping one field instead of six always appeals to me. This particularly true if the operator wants to copy and paste a complete address.

     


    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.