August 6, 200718 yr 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
August 6, 200718 yr 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.
August 6, 200718 yr 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