想针对Memo控件中的文本进行查找替换,如何实现?
解决方案 »
- Delphi2010,如何定义PInstanceBlock
- 怎么学习delphi?作为一个初学者
- delphi 程序代码中终止自身进程有多少种方法?
- DLL问题
- 怎样打印数据库?
- 请教一个超复杂问题:如何在一个32位的系统中显示64位长的数据?
- batchmove和vfp(dbf)的问题,使用batchmove控件把dbf文件导入到oracle数据库中的表中,时间类型的字段出现乱码?
- DBComboBox的下拉列表问题,请执教,谢谢
- 为什么AdoTable.Locate('Oper_Name',Edit1.Text,[loCaseInsensitive]) 有时候出错,有时候不出错?
- 依旧是关于Richedit或rxrichedit中版面控制的问题(问题1),各位大侠再帮我一把!
- TSQLConnection问题??急急急.........
- 交叉表
for I:=0 to memo1.lines.count do
begin
posreturn:=pos(finddialog1.findtext,Memo1.lines[I]);
if Posreturn<>0 then{找倒了}
begin
。。
end
end;
用这个函数可以解决问题Returns a string with occurrences of one substring replaced by another substring.UnitSysutilsCategorystring handling routinestype
TReplaceFlags = set of (rfReplaceAll, rfIgnoreCase);
function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;