Detecting Line Return Character

D

Deanna Rains

I have a memo field that contains data separated by Line
Return Characters. How do I determine how many lines will
be printed. I can count the characters, but don't know
how to count the Line Returns.

Thanks.
 
D

Douglas J. Steele

Depending on how the data was entered, Line Returns are either going to be
Chr$(13) & Chr$(10) (in that order), or just Chr$(13), or just Chr$(10)
 

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