Brian Dunning's FileMaker Custom Functions

RemoveEmptyValues ( Text )

Remove empty lines of return-seperated text.

  Average rating: 4.5 (40 votes) Log in to vote

Koji Takeuchi   Koji Takeuchi - Show more from this author
TonicNote, Inc.
https://tonic-note.com

Share on Facebook Share on Twitter

  Sample input:
RemoveEmptyValues ( "A¶¶¶B¶C¶" )
  Sample output:
"A¶B¶C"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

RemoveEmptyValues ( Text )
2011.03.25, Koji Takeuchi


description:
Remove empty lines of return-seperated text.
ex.
Text = source text
"A¶¶¶B¶C¶" or
List ( TO::Field ) or
ValueListItems ( Get ( FileName ) ; "ValueListName" )

RemoveEmptyValues ( "A¶¶¶B¶C¶" )
-> "A¶B¶C"

 

Comments

MArtin   MArtin, Zürich
Mar 31, 2011
Can also be done with the CF "RemoveExtraReturns ( text ): http://www.briandunning.com/cf/11

Regards,
Martin
 
Koji Takeuchi   Koji Takeuchi, TonicNote, Inc.
Mar 31, 2011
Duplicated!

Thanks, Martin.
Sorry for lazy to searching, but I leave this here to just offering a variation :)
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: