Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4584 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

Not really sure if I posted in the right forum directory, but anyways...

The problem I've stumbled across is "How to tell Filemaker Pro not to insert carriage return if the current line is the last one?". That is to create labels.

My calculation field goes like that:

Case (

IsEmpty ( First ); " " & Last & "¶";

IsEmpty ( Last);" " & First & "¶";

" "&First & " " & Last & "¶"

) & "" &

If ( IsEmpty ( Nickname ) ; "";" " & GetField ( "Nickname" ) & "¶" ) & "" &

If ( IsEmpty (Title) ;"" ;" "& TextSize (GetField ("Title") ; 8 ) & "¶")& "" &

If ( IsEmpty (Company ) ; "" ;" "& TextStyleAdd (GetField ("Company") ; Bold ) & "¶") & "" &

If ( IsEmpty ( Division ) ; "" ; " "& GetField ("Division") & "¶") & "" &

If ( IsEmpty ( ${Street 1 (Line 1)} ) ;"" ;" "& GetField ( "${Street 1 (Line 1)}" ) & "¶") & "" &

If ( IsEmpty ( ${Street 1 (Line 2)} ); "" ; " "&GetField ( "${Street 1 (Line 2)}" ) & "¶") & "" &

If ( IsEmpty ( City 1 ) ; "" ; " "&GetField ( "City 1" ) & "¶") & "" &

Case (

IsEmpty ( State 1 & Zip 1 ) ;"" ;

IsEmpty ( State 1 );" "& GetField ( "Zip 1" ) & "¶";

IsEmpty ( Zip 1 ); " "& GetField ( "State 1" ) & "¶";

" "&GetField ( "State 1" ) & ", " & GetField ( "Zip 1" ) & "¶"

) & "" &

If ( Country 1 = "UK" ; "" ;" " & GetField ( "Country 1" ) )

Thanks

Posted

AFAICS, the most simple solution would be to put the CR at the beginning rather than at the end, so each non-empty result brings along its very own CR.

  • Like 1
Posted

First thing: you should use the field's name directly, instead of GetField(); for example:

Case ( not IsEmpty ( FirstName ) ; FirstName )

Re your question, I suggest you study the List() and Trim() functions.

  • Like 2
Posted

Hi tchemiy, and Welcome to the Forums

Not really sure if I posted in the right forum directory, but anyways...

This topic has been moved from "FileMaker Product FamilyFileMaker Pro 12" to "Database Schema & Business LogicCalculation Engine (Define Fields)".

This forum is for the discussion of the new features of the FileMaker Pro Family of

Products.

Lee

This topic is 4584 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.