procedure TForm1.Button1Click(Sender: TObject);
var MS:TFileStream;
begin
if opendialog1.Execute then
begin
MS:=TFileStream.create(opendialog1.FileName,fmOpenRead);
Memo1.Lines.LoadFromStream(MS);
MS.free;
end;
end;
end.如何替换里面指定的字符串????
是不是像VB里用 RePlace(string,vbCrLf,"<br>")一样???
var MS:TFileStream;
begin
if opendialog1.Execute then
begin
MS:=TFileStream.create(opendialog1.FileName,fmOpenRead);
Memo1.Lines.LoadFromStream(MS);
MS.free;
end;
end;
end.如何替换里面指定的字符串????
是不是像VB里用 RePlace(string,vbCrLf,"<br>")一样???
begin
showMessage(ansiReplaceText('http://www.goomoo.net','goomoo','csdn'));
end;注意要 Uses StrUtils;
说“未声明ansireplace”