Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvMemo
Programmatically find and select text in the memo

Following code snippet shows how easy it is to programmatically search for the first occurence of text in the memo and select it:
begin
  advmemo1.FindText('text to find',[frDown]);
  advmemo1.SetFocus;
end;

The search is from the memo cursor position. To search next occurences, just call this code again.