自已写个函数就不行吗???<br> procedure ReplaceChar(OldChar,NewChar: Char;var AStr: string);<br> var iPos: integer;<br> begin<br> iPos := Pos(OldChar,AStr);<br> while iPos>0 do<br> begin<br> AStr[iPos] := NewChar;<br> iPos := Pos(OldChar,AStr);<br> end;<br> end;