Click to See Complete Forum and Search --> : CR and LF doesn't work!


September 16th, 1999, 09:20 AM
Hi.
Why doesn't CR or LF work in my CEdit control. I use a member variabel of type CString and transfer data with UpdateData(FALSE).
When I use \n or \r in my CString, it's replaced with another character, ( thick line of some sort), but no new line. What am I doing wrong?

/Crister

Roger Allen
September 16th, 1999, 10:48 AM
That thick line character is the \r \n character. Is your edit control a multiline control ? Also, you have to get the \r\n in the right order otherwise they will not be recognised as a new line combination.

HTH

Roger Allen aka [CB]RIGamortis, the quake2 player.