pos(''',s),//找出位置
delete()   //删除即可

解决方案 »

  1.   

    //str为要处理的字符串
    while Pos('''', str) > 0 do
    begin
       Delete(str,Pos('''', str),1);
    end;
      

  2.   

    stringReplace(str,#39,'',[rpReplaceAll])
      

  3.   

    pos(''',s)//找出位置
    delete()   //删除即可//////////////
    for i:=1 to length(str) do
    begin
      if str[i]=''' then
         .
         .
         .end;
      

  4.   

    以前我也做过滤逗号的 不过要考虑中文输入跟英文输入的不同 后来stringReplace 帮了我大忙
      

  5.   

    stringReplace(str,#39,'',[rpReplaceAll])
      

  6.   

    StringReplace(S,'''','',[Rpreplaceall]);
      

  7.   

    while Pos('''',S)>0 do
      Delete(S,Pos('''',S),1);
      

  8.   

    StringReplace(S,'''','',[rpReplaceAll])