WPTools4 to 5 Upgrade Issue with Merge Fields

  • Hi,

    We upgraded from WPTools4 to 5 some time ago. We have code similar to the following which works fine for any editor content generated after the upgrade:

    Code
    procedure Dialog.Editor_ActivateHotStyle(Sender: TObject;
      par: TParagraph; posinpar: Integer);
    var
      lField: TWPTextObj;
    begin
      lField := Editor.FieldGetInpar(par, posinpar);
      ...
    end;

    However, when we load the editor with any content generated and saved before the upgrade, lField gets a Nil and the rest of the code does not work.

    Any suggestions?

    Thanks,