Hi Everyone,
I've encountered a problem that I can't solve .... and it seems that it shouldn't be a problem at all!I'm trying to populate a (CString) multiline edit box with a CString value that contains "\r\n". If I populate the edit box as follows, everything works fine with the Lines being on different rows:
But if I use a variable instead, such as:VB Code:
m_edtMessage = "Line1\r\nLine2\r\nLine3\r\nLine4"; UpdateData(FALSE);, everything just appears on the first line, including "\r\n".VB Code:
m_edtMessage = g_miParameterInfo[sArrayCtr].sz_Parameter; UpdateData(FALSE);
Can anyone help me out? This seems straightforward but I don't see why the variable method is not working.
Thanks in advance.
OneSource




I'm trying to populate a (CString) multiline edit box with a CString value that contains "\r\n". If I populate the edit box as follows, everything works fine with the Lines being on different rows:
Reply With Quote