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
Find and Replace in documents with SRVControls
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Find and Replace in documents with SRVControls
Searching in inserted controls is not implemented yet.
Find and Replace in documents with SRVControls
If I manually add new text to a link and then delete the old text, the link is maintained, but not with "Find and replace", the link is deleted even though the text color says the link is still present. Can this be find and replace be modified to maintain the link since I have 1600 links that I would like to change the names of?
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Find and Replace in documents with SRVControls
Do you mean that when you replace a hyperlink text, its target (i.e. the link's tag) is lost?
I cannot reproduce this problem.
Can you create a simple project to reproduce it?
I cannot reproduce this problem.
Can you create a simple project to reproduce it?