hartmut77 Posted April 25, 2004 Posted April 25, 2004 Hi I have a text field called "temp" it has 2 lines or pne paragraph return How can I remove the second line only in the field "temp" Thanks FileMaker Version: 7 Platform: Mac OS X Panther
The Shadow Posted April 25, 2004 Posted April 25, 2004 FM7 has new "value" methods that operate on full lines of data, just like LeftWords() etc. methods operate on full words. So: LeftValues( temp, 1 ) & RightValues( temp, ValueCount(temp) - 2 ) will return all but the second line. BUT, the RightValues() call will add a newline at the end of your text even if there wasn't already one there. Similarly: LeftValues( temp, 1 ) will return only the first line (with a newline) and: MiddleValues( temp, 2, 1 ) is just the second line (always with a newline).
Recommended Posts
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