Brian Dunning's FileMaker Custom Functions

RemoveCRNL ( TextField )

Removes a trailing CR or NewLine from text

  Average rating: 4.3 (24 votes) Log in to vote

Don Clark   Don Clark - Show more from this author
FM Database Consulting
http://www.fmdbc.com

Share on Facebook Share on Twitter

  Sample input:
TextWithHardCR
  Sample output:
TextWithHardCR (CR removed)

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

Many times users will hit the return or enter key to navigate to the next field, especially with IWP, which can cause problems with exact (==) searches in FileMaker. This function tests the text field for a trailing CR or NL and removes it.

6-27-12 - Added default of 'TextField' to the function.

 

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: