本文整理自网络,侵删。
Memo1.WordWrap:= False;
function TForm1.FindText( const aPatternToFind: String):Boolean; var p: Integer; begin p := pos(aPatternToFind, Memo1.Text); Result := (p > 0); if Result then begin Memo1.SelStart := p; Memo1.SelLength := Length(aPatternToFind); Memo1.SetFocus; // necessary so highlight is visible end; end;
相关阅读 >>
Delphi xe6 取得app自己的版本号(横跨4个平台)
Delphi excel操作,写了个adodataset转excel的函数
更多相关阅读请进入《Delphi》频道 >>