Re: Delphi FindDialog with a RichEdit

Posted by joe90 on June 12, 2005

In Reply to: Re: Delphi FindDialog with a RichEdit posted by webmaster Guido on June 04, 2005

Hi

I was just going back over the code here, and I was wondering about a couple of things in these lines:

sText := Copy(RE.Text, StartFrom, Length(RE.Text) - StartFrom - 1);

- Why does the Copy() have a -1 on the end?


PreviousFoundPos := FoundPos + StartFrom - 1;

- Why does this also have a -1 on the end?

Thanks, joe90.

Related Articles and Replies