I am trying to run through an RTF control character by character and format the text through code based on its value.

when I run into a linefeed or a carriage return, I am stopped. The code does not recognize the chr$(13) nor the chr$(10), and will not accept these as valid selstart and sellength positions.

Does anyone know a way to determine if a character location in an RTF control is a line feed or a carriage return?

Thanks in advance.