Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Removing RB events causes Invalid Property error

edited February 2005 in General
Here's a strange one for you...

My app previously defined certain events for a few reports such as
"AfterPrint", "BeforePrint", etc. I have since modified the app in such a
way that these events are no longer required. Unforunately, if I remove
them, the app will no longer load and run. On startup I get an "Invalid
Property" error. To get the program working again, I simply create the
event(s) again and use comment delimiters in the code sections to keep
Delphi from removing them. I guess I can continue to work with it this way
but it makes for some confusion down the road.

Any ideas? TIA.

Regards,
Al

Comments

  • edited February 2005
    Pardon me, but the error is actually "Invalid Property Value". Didn't know
    if that would make any diff. Thanks again.

  • edited February 2005
    Hi Al,

    If you are loading report templates into your application, note that the
    event reference is saved down when you save your template. Try manually
    loading the templates and re-saving them without the events present.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    Thanks, Nico, that was indeed the problem. All is better now.

    Regards,
    Al

This discussion has been closed.