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

Handle RAP exception outside debugger

In the process of converting applications from RB14 to RB20, I found a error in a report.
The RAP code referenced a field ORDERS['FAX'] while the field didn't exist anymore.
In RB14 error is not visible at runtime even when ran inside the debugger.
In RB20 the Delphi debugger raises the exception EDatabaseError 'Field 'FAX' not found'.
This is only visible in the debugger.

Is it possible to get this exception also when ran outside the debugger so I can handle it?
I would like to verify the reports (including the RAP code) against these kind of mistakes.
Kind regards,

Jeroen Röttink
JR-soft software solutions

Comments

  • Hi Jeroen,

    This is a general behavior of RB in dealing with missing fields. It is not specific to RAP. RB does not raise exceptions for missing fields.


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
Sign In or Register to comment.