mhudd Posted March 22, 2002 Posted March 22, 2002 Is there a calc that counts the number of lines in a text field?
SteveB Posted March 23, 2002 Posted March 23, 2002 If you define # of lines by the # of CRs, then yes: PatternCount(string,"P") where "P" is the CR character.
danjacoby Posted March 23, 2002 Posted March 23, 2002 With wrapped text, it's a lot harder. You can get an approximation with a calc field: code: Int(Length(TextField) / ##) Where "##" is the number of characters in an average line. Monospaced fonts (like Courier) make it easier to determine this. Frankly, this is just an approximation, though. The thing is, FMP isn't a word processor, so it doesn't really have those word processing "extras", like word count and line numbers.
BobWeaver Posted March 23, 2002 Posted March 23, 2002 Actually you can count number of lines of wrapped text exactly with a script, which counts pages on a carefully constructed layout. I have an example file on my stupid filemaker tricks webpage: http://members.shaw.ca/indexel/download.htm
Recommended Posts
This topic is 8338 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