count line in memo(multi line text)

  • Thread starter Thread starter Guest
  • Start date Start date
Since lines are separated by a combination of Carriage Return/Line Feed
(Chr$(13) & Chr$(10), in that order), you can use the following:

(Len([MyMemoField]) - Len(Replace([MyMemoField], Chr$(13) & Chr$(10),
"")))/2
 
yousef said:
I want cod of(count line in memo text(multi line text) )

Remember that "lines" are defined with a carnage return and line feed.

The lines displayed at any given time may include wrapped lines that
depend on the width of the control in which they are being displayed.
 

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

Back
Top