Find and Replace in documents with SRVControls
Posted: Fri Feb 21, 2020 6:38 pm
if not editor1.srv.StartEditing(Editor) then
exit;
editor1.srv.CanUpdate := False;
editor1.srv.ActiveEditor.SetSelectionBounds(
0, editor1.srv.ActiveEditor.GetOffsBeforeItem(0),
0, editor1.srv.ActiveEditor.GetOffsBeforeItem(0));
while (editor1.srv.ActiveEditor.SearchText(InSearch,[
RVEdit.TRVESearchOption.rvseoDown])) do
editor1.srv.ActiveEditor.InsertText(InReplace, False);
editor1.srv.CanUpdate := True;
(editor1 is a frame and srv is a TSRichViewEdit)
can't find the text in documents with SRVControls
exit;
editor1.srv.CanUpdate := False;
editor1.srv.ActiveEditor.SetSelectionBounds(
0, editor1.srv.ActiveEditor.GetOffsBeforeItem(0),
0, editor1.srv.ActiveEditor.GetOffsBeforeItem(0));
while (editor1.srv.ActiveEditor.SearchText(InSearch,[
RVEdit.TRVESearchOption.rvseoDown])) do
editor1.srv.ActiveEditor.InsertText(InReplace, False);
editor1.srv.CanUpdate := True;
(editor1 is a frame and srv is a TSRichViewEdit)
can't find the text in documents with SRVControls