我有一个字符串,比如'abc de ef',想要处理成'abc and de and ef'的形式
有系统函数支持马?谢谢

解决方案 »

  1.   

    stringreplace('abc de ef',' ',' and ',[rfReplaceAll])
      

  2.   

    这就是简单的替换了,把' '替换成' and '.
    function AnsiReplaceText(const AText, AFromText, AToText: string): string; 
    use StrUtils
      

  3.   

    好象没有,不过可先找到空格,尔后插入'and '
      

  4.   

    谢谢~~有什么好的delphi帮助文件?或者比较全的delphi书下载嘛?
      

  5.   

    好的帮助文件?DELPHI带的不是吗?不全吗?  呵呵
      

  6.   

    stringreplace('abc de ef',' ',' and ',[rfReplaceAll])
      

  7.   

    函数
    stringreplace(const S, OldPattern, NewPattern: string;Flags:TReplaceFlags):string stringreplace('abc de ef',' ',' and ',[rfReplaceAll]);