首页 > 代码库 > TMemo.Text 回车键会变成#$D#$A,而非#13#10

TMemo.Text 回车键会变成#$D#$A,而非#13#10

mmoComplain: TMemo;
//
cxmComplain.Text 会造成回车键 转换成十六进制的字符串 #$D#$A,而非#13#10 //cxmComplain.Text范例:‘风发的是‘#$D#$A‘范ljk‘#$D#$A‘13123‘ strComplain:=cxmComplain.Lines.CommaText; //函数原型 function AdjustLineBreaks(const S: string): string; 将字符串的换行符号全部改为#13#10
//cxmComplain.Lines.ToString    cxmComplain.Text //当有回车键时API无法接收正确参数,
r := TPostSimpleValueEntity.PostAPI2099("+DateTimeToStr(now)+","+CommNO+","+RegistrationNO+",
"+FClientPhoneNO+","+Trim(strComplain)+",OrderID,IsClientAccuse);

 

TMemo.Text 回车键会变成#$D#$A,而非#13#10