Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new line or end of line character

Status
Not open for further replies.

classic773

Programmer
Jun 14, 2001
57
US
How do you create an end of line in a CString. I have an edit box that I'm outputting text to. How do I format the Cstring to put text on a new line periodically. In c++ \n would create a new line, that doesn't seem to work here.
 
Try: myString.Replace('\n', '\r\n');

This replaces all line feeds with a carriage return & a line feed, then UpdateData(FALSE) or SetWindowText()....




Spencer Window (not a joke name)
spencer.window@eastmidlandcomputers.ltd.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top