H htrun Unregistered / Unconfirmed GUEST, unregistred user! 2009-01-14 #1 数据已经加载在richedit,均为纯文本,共4000多行,如何查找并删除某特定字符之后的文本?如该文本的中某处有“大富翁”字符段,如何查找到“大富翁”并且删除“大富翁”后面的所有内容?
Z zkktom Unregistered / Unconfirmed GUEST, unregistred user! 2009-01-15 #3 stringreplace('大富翁','',richedit.text)
R Resume Unregistered / Unconfirmed GUEST, unregistred user! 2009-01-15 #5 var str,substr:string;begin substr:='大富翁'; str:=richedit.text; str:=copy(str,1,pos(substr,str)+length(substr)); richedit.text:=str;end;
var str,substr:string;begin substr:='大富翁'; str:=richedit.text; str:=copy(str,1,pos(substr,str)+length(substr)); richedit.text:=str;end;