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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newline in a TEdit or TMemo control

Status
Not open for further replies.

tcollins

Programmer
Sep 12, 2000
34
US
Its a kinda silly question, but how do you tell a TEdit or TMemo control to use a newline character properly? I've tried the usuals of \r, \n, 10, 13, etc. I need to programatically fill the control, and newlines will be important. I'm passing an AnsiString argument:

frmChat->memoChat->Text = s ;

Thanks.
 
Hmm, ya, ok, that works. So, we're doing it the long way...line by line.

Gets me going further in the right direction, though. Thank you.
 
Just use "\r\n"
and set the memo control WantReturns = false and Wordwrap = false
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top