To:NATASHA:请详细解释一下好吗?<br>var <br> NewStr, Str, SubStr: String;<br> I, Len: Integet;<br>begin<br> I := Pos(SubStr, Str);<br> if I >= 0 then<br> NewStr := Delete(Str, I, Length(SubStr);<br><br>NewStr := Delete(Str, I, Length(SubStr);//这句有错误!<br>Pos(SubStr, Str)起什么作用?<br>Delete(.......)的用法?<br>Length(String)是求String的长度吧?<br><br>To realLearning:<br>Edit1.Text := StringReplace(Edit2.Text,Edit3.Text,'',[rfReplaceAll, rfIgnoreCase]);<br>这句好象不对呀?<br><br>