Brian Dunning's FileMaker Custom Functions

RemoveEmptyLines ( Text )

Remove all empty lines or lines with only spaces

  Be the first to rate this function Log in to vote

Philip Wang   Philip Wang - Show more from this author
106th Street Wheel and Tire
http://www.106sttire.com

Share on Facebook Share on Twitter

  Sample input:
1.
RemoveEmptyLines ( "¶¶123¶ ¶456¶ ¶789¶¶" )

2.
RemoveEmptyLines ( "¶¶123¶ ¶456¶ ¶789" )
  Sample output:
Return 1:
123¶
456¶
789¶

Return 2:
123¶
456¶
789

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

This function is similar to RemoveExtraReturns at http://www.briandunning.com/cf/11
But it adds processing line feature. You can remove other unwanted characters like Tab or CR.

Note: If the value list is ended with more than 1x¶, the result will have a ¶ in the end. As the samples show.

 

Comments

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 20 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: