Posted by webmaster Guido on June 13, 2005
In Reply to: Re: Delphi FindDialog with a RichEdit posted
by joe90 on June 12, 2005 Shame on me, that was a serious typo. Of course it must be +1 instead of -1: On the other hand, this line was correct: PreviousFoundPos := FoundPos + StartFrom - 1; Consider searching for "ab" in "abcabcde". StartFrom := 1 + Length('ab'); // 3 sText := Copy('abcabcde', 3, 8 - 3 + 1); // 'cabdce' FoundPos := Pos('ab', 'cabcde'); // 2 PreviousFoundPos := 2 + 3 - 1; // 4 Related Articles and Replies
|
|