Beiträge von Poida

    Hello

    I wish to strip all the images out of all the Blob fields that contains RTF code saved from a TDBWPRichText, but the examples that I can find all relate to version 5 or later. I am using Delphi 7 for this legacy app.

    So far I can select an image, but I can't delete it...
    for i := 0 to wpDB1.TextObjects.Count - 1 do
    begin
    if wpDB1.TextObjects.list[i] is TWPOImage then
    begin
    wpDB1.SetFocus;
    wpDB1.Changing;
    wpDB1.TextObjects.list[i].Select(True);
    wpDB1.InputString(#127); <--- doesn't delete the image
    end;
    if dataset in blah blah...
    Table1.Post;
    Table1.Next;

    Any assistance you could provide would be greatly appreciated.

    Regards & TIA