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.
 
Back
Top