Delphi 去掉字符串中的回车符

2019-10-3017:36:20来源:wruim 评论 1,366 views

方法一:

Str := StringReplace(Str,   #13#10, '',   [rfReplaceAll]);

方法二:

fileTitle:=StringReplace(fileTitle,#$D#$A,'',[rfReplaceAll,rfignorecase]);

注意:是#$D#$A,不加引号

历史上的今天
10月
30

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: