现我有一类型memo的字段里面含有换行符.
现在我要去掉里面的换行符.我先将字段内容赋给字符串变量title.然后用
stitle:=StringReplace(title,chr(13),'',[rfReplaceAll]);
进行替换,但是我发现没有成功.换行符仍然存在?请高手指教?
现在我要去掉里面的换行符.我先将字段内容赋给字符串变量title.然后用
stitle:=StringReplace(title,chr(13),'',[rfReplaceAll]);
进行替换,但是我发现没有成功.换行符仍然存在?请高手指教?
stitle:=StringReplace(title,chr(13),'',[rfReplaceAll]);
stitle:=StringReplace(title,chr(10),'',[rfReplaceAll]);
stitle:=StringReplace(stitle,chr(10),'',[rfReplaceAll]);
delete (title,pos(#13,title),1);
stitle:=StringReplace(stitle,chr(10),'',[rfReplaceAll]);
stitle:=StringReplace(stitle,chr(10),'',[rfReplaceAll]);
对,因为 chr(13)+chr(10)才表示回车 符号呢!!!