CString and Escape Sequence Inconsistency ...
Hi Everyone,
I've encountered a problem that I can't solve .... and it seems that it shouldn't be a problem at all! :confused: 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:
VB Code:
m_edtMessage = "Line1\r\nLine2\r\nLine3\r\nLine4";
UpdateData(FALSE);
But if I use a variable instead, such as:
VB Code:
m_edtMessage = g_miParameterInfo[sArrayCtr].sz_Parameter;
UpdateData(FALSE);
, everything just appears on the first line, including "\r\n".
Can anyone help me out? This seems straightforward but I don't see why the variable method is not working.
Thanks in advance.
OneSource