Counting number of lines in memo field

G

Guest

Hi folks,
How do I go about displaying the line count of a memo field? I need to
create a report that shows how many lines there are in a memo field for each
record and a total line count at the end of the report. Thanks in advance!!!
 
M

Marshall Barton

Jaime said:
How do I go about displaying the line count of a memo field? I need to
create a report that shows how many lines there are in a memo field for each
record and a total line count at the end of the report. Thanks in advance!!!


No built-in way to do that.

If each line is newline terminated and short enough to not
wrap to multiple lines, then you could just count the
newline sequences in the memo.

That's a pretty unlikely scenario, so you are either out of
luck or you'll have to try using the fTextHeight function at
www.lebans.com
 
G

Guest

Oh... So I'll have to make some routine to count the newlines then...
Alright. I was hoping for an easy answer, but I guess I have to code this one
;) Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top