Jump to content

Stripping carriage returns


johnrh

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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6200 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.