Y yixueying2003 Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-28 #1 如题,我用 StStringReplace(tmpcon,#$D#$A,'/n',[rfReplaceAll]);为什么不管用呢
李 李翔鹏 Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-28 #2 管用阿!procedure TForm1.Button1Click(Sender: TObject);var tmpcon : string; begin tmpcon := 'abcdefg#$D#$Awweeeee'; tmpcon := StringReplace(tmpcon,'#$D#$A','/n',[rfReplaceAll,rfignorecase]); ShowMessage(tmpcon); end;
管用阿!procedure TForm1.Button1Click(Sender: TObject);var tmpcon : string; begin tmpcon := 'abcdefg#$D#$Awweeeee'; tmpcon := StringReplace(tmpcon,'#$D#$A','/n',[rfReplaceAll,rfignorecase]); ShowMessage(tmpcon); end;
仙 仙剑奇侠 Unregistered / Unconfirmed GUEST, unregistred user! 2009-03-31 #3 StringReplace(tmpcon,#13#10,'/n',[rfReplaceAll,rfignorecase]);
B bsense Unregistered / Unconfirmed GUEST, unregistred user! 2009-04-09 #4 StringReplace(tmpcon,'#$D#$A','/n',[rfReplaceAll,rfignorecase]);上下二者区别是上面用字节表示 仍然是 #$D#$A ,下面是 13,10 两个字节StringReplace(tmpcon,#$D#$A,'/n',[rfReplaceAll,rfignorecase]);这下面的和上面是一样的StringReplace(tmpcon,#$D#$A'','/n',[rfReplaceAll,rfignorecase]);
StringReplace(tmpcon,'#$D#$A','/n',[rfReplaceAll,rfignorecase]);上下二者区别是上面用字节表示 仍然是 #$D#$A ,下面是 13,10 两个字节StringReplace(tmpcon,#$D#$A,'/n',[rfReplaceAll,rfignorecase]);这下面的和上面是一样的StringReplace(tmpcon,#$D#$A'','/n',[rfReplaceAll,rfignorecase]);
F formiss Unregistered / Unconfirmed GUEST, unregistred user! 2009-04-13 #5 procedure TForm1.Button1Click(Sender: TObject);var tmpcon : string; begin tmpcon := 'abcdefg'+ #$D#$A+ 'wweeeee'; tmpcon := StringReplace(tmpcon,#$D#$A,'/n',[rfReplaceAll,rfignorecase]); ShowMessage(tmpcon); end;
procedure TForm1.Button1Click(Sender: TObject);var tmpcon : string; begin tmpcon := 'abcdefg'+ #$D#$A+ 'wweeeee'; tmpcon := StringReplace(tmpcon,#$D#$A,'/n',[rfReplaceAll,rfignorecase]); ShowMessage(tmpcon); end;
Y yixueying2003 Unregistered / Unconfirmed GUEST, unregistred user! 2009-04-17 #6 我都说过了,这样不管用的,这两种我都试过了,试过了确实可行再说好不好
Y yixueying2003 Unregistered / Unconfirmed GUEST, unregistred user! 2009-05-05 #10 to smlabc:你的人品有问题的话,愿意宣传的话可以去新闻联播上广播一下,会比这儿效果好的多的,请自重
Y yixueying2003 Unregistered / Unconfirmed GUEST, unregistred user! 2009-05-05 #11 to 李翔鹏:不好意思,我说的不是你的那个意思,我的意思是想让'abcdefg'+#$D#$A+'wweeeee'变成'abcdefg/nwweeeee'虽然是理解有分歧,但也不至于说话那么难听吧