Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stripping carriage returns

Featured Replies

I need to strip away a variable number of carriage returns from the end of a field so that it ends with the last true character rather than the carriage return.

Removing 1 carriage return is easy enough (just go right(field,length(field)-1) but I cant think how to do it if there are a dfferent number of returns in the feild in different records.

They are there because users have pressed enter several times when entering the data.

This is REALLY important and so nay help would be really appreciated.

Thanks everyone

John

You could use a recursive custom function for this, or see here:

http://fmforums.com/forum/showpost.php?post/168445/

Note that the question marks in the formula were originally carriage returns (¶), but a change in the forum software made them unreadable.

Take a look at Ray Cologon's Trim4() custom function at Brian Dunning's web site.

www.briandunning.com

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.