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
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.

Under construction. Email me your wish list for improvements.