count line in memo(multi line text)

D

Douglas J Steele

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
 

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