这样的函数没有,只有自己写了
先用POS定位,然后在用DELETE删除

解决方案 »

  1.   

    TrimRight:去右边的空格
    TrimLeft:去左边的空格
    Trim:去前后的空格。
      

  2.   

    对不起,我看错问题了。TrimRight这个函数就可以搞定了
      

  3.   

    去除右边空格:function TrimRight(const S: string): string;DescriptionTrimRight returns a copy of the string S with trailing spaces and control characters removed.去除左边空格:
    function TrimLeft(const S: string): string;DescriptionTrimLeft returns a copy of the string S with leading spaces and control characters removed.去除两端空格:
    function Trim(const S: string): string;DescriptionTrim removes leading and trailing spaces and control characters from the given string S.