CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    CR and LF doesn't work!

    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


  2. #2
    Join Date
    May 1999
    Location
    West Sussex, England
    Posts
    1,939

    Re: CR and LF doesn't work!

    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.
    Please use meaningful question titles - "Help me" does not let me know whether I can help with your question, and I am unlikely to bother reading it.
    Please remember to rate useful answers. It lets us know when a question has been answered.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured