Problem: Clear method clears everything

  • In my code code to create a new document, I have wp.Clear. But when this happens, the entire TWPRichTextt control disappears.

    However, if I add a ShowMessage() right after it, it works just fine.

    like this....

    wp.Clear;
    ShowMessage('dazed and confused');

    Any idea what's going on? And how I can make the TWPRichText control not dissappear when I close it? (btw this code worked fine in v4)

    Thanks

    Dale