Detecting Line Return Character

Detecting Line Return Character

Post by Deanna Rai » Wed, 15 Oct 2003 00:43:19


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.
 
 
 

Detecting Line Return Character

Post by Douglas J. » Wed, 15 Oct 2003 04:07:27

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)