johnrh Posted August 6, 2007 Share Posted August 6, 2007 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 More sharing options...
comment Posted August 6, 2007 Share Posted August 6, 2007 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 More sharing options...
Vaughan Posted August 6, 2007 Share Posted August 6, 2007 Take a look at Ray Cologon's Trim4() custom function at Brian Dunning's web site. www.briandunning.com Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6242 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 accountSign in
Already have an account? Sign in here.
Sign In Now