Difference between revisions of "TReplaceDialog"
From Free Pascal wiki
Jump to navigationJump to search (Created page with "component-TReplaceDialog.png") |
|||
Line 1: | Line 1: | ||
− | [[component-TReplaceDialog.png]] | + | '''TReplaceDialog''' [[Image:treplacedialog.png]] is a component that aids in search and replace textinformation. It can be found on the [[Dialogs tab]] of the [[Component Palette]]. |
+ | |||
+ | [[image:component-TReplaceDialog.png]]]] | ||
+ | |||
+ | == Usage == | ||
+ | <syntaxhighlight> | ||
+ | procedure TForm1.Button1Click(Sender: TObject); | ||
+ | begin | ||
+ | ReplaceDialog1.FindText := 'findme'; | ||
+ | ReplaceDialog1.ReplaceText := 'recplaceme'; | ||
+ | if ReplaceDialog1.Execute() then | ||
+ | PerformReplace() | ||
+ | end; | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | == See also == | ||
+ | * [[doc:lcl/dialogs/treplacedialog.html|TReplaceDialog doc]] | ||
+ | |||
+ | {{LCL Components}} |
Revision as of 13:49, 24 July 2016
TReplaceDialog is a component that aids in search and replace textinformation. It can be found on the Dialogs tab of the Component Palette.
Usage
procedure TForm1.Button1Click(Sender: TObject);
begin
ReplaceDialog1.FindText := 'findme';
ReplaceDialog1.ReplaceText := 'recplaceme';
if ReplaceDialog1.Execute() then
PerformReplace()
end;
See also