Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6318 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

www.briandunning.com

This topic is 6318 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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