Find and Replace Text

Alex,

I am modifying some reports of the version 2.5x and in it we have some Memo's filled thus:
frmForm.TTable

To function in the version 3.x we need to look for and to change the text:
TTable

The FindText function does not allow to look and to change a text for '' (null).

********* FSearchReplace <> '' *****************


Found := CodeWindow.Find(FSearchText, FSearchCase, FSearchIndex);
if FSearchReplace <> '' then
if Found and AskReplace then
begin
CodeWindow.SelText := FSearchReplace;
Modified := True;
end;


Edson Martins

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.