WPCubed Product Support

Seems that FindNext is not supported in WPTools5. Is there any way to reproduce it?
Thanks!

#1 ♥ 0
9.9k Views 2 users read 1 min
support

Hi,

it is better to use the 'Finder' since it has more control.

I wrote this code which to replace the text "[sig]" with a certain image. Should be suitable example.

WPRichText1.Finder.ToStart;
 while WPRichText1.Finder.Next('[sig]') do
 begin
       WPRichText1.CPPosition := WPRichText1.Finder.FoundPosition;
       WPRichText1.Finder.FoundText := '';
       WPRichText1.TextObjects.InsertCopy(Image1.Picture.Graphic);
 end;
 WPRichText1.DelayedReformat;

Julian

#2 ♥ 0
This category is archived. No new posts are possible.