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 5867 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I feel like I've seen this on here recently, but can't find it.

Can anyone provide a way to filter out null values from a list of values?

"¶¶ABC¶123¶123¶¶¶EFG¶" should return "ABC¶123¶123¶EFG"

Thanks

Posted (edited)

One possible way:

Substitute ( TrimAll ( Substitute ( text ; ¶ ; " " ) ; 0 ; 0 ) ; " " ; ¶ )

UPDATE: Actually, the concept came from Comment's mind but the calc is my twist on it ... his was, of course, shorter and sweeter. But the idea is to change the carriage returns (or any character wanted) into spaces. Then remove the extra spaces. Then turn it back into carriage returns.

Edited by Guest
Added update
  • 1 month later...
Posted

Maybe this is a stupid question, Comment, but I noticed in your sample code that you used three open parentheses and only one close. Why is that? When do close parentheses matter, and when don't they? (Before posting this, I looked in two FMP books and quickly searched FMForums, but at first glance I didn't find an answer.) Thanks!

Posted

: Dude! My new eyeglasses are doing more harm than good.

One other, possibly stupid Q, if you don't mind - how did you get your code to display in color like that - is that a post-FMP7 feature?

Thanks again.

This topic is 5867 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.