Link to home
Create AccountLog in
Avatar of rincewind666
rincewind666

asked on

Coping the paragraph that a certain word appears in (500 points)

When a certain word appears in the text of Memo1, I want just the paragraph to be copied to Memo2.  I am using Delphi 6.  

I am giving 500 points as this code is required urgently. Many thanks for your help.
Avatar of rincewind666
rincewind666

ASKER

Almost forgot. I need ALL the paragraphs that this word appears in, not just the first.  Thanks.
procedure TForm1.Memo1Change(Sender: TObject);
begin
Memo2.Text:=Memo1.Text;
end;
ASKER CERTIFIED SOLUTION
Avatar of Kyle Foster
Kyle Foster
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer