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

'-' is not a valid integer

edited June 2009 in General
Hi

Delphi 2007.

Just upgraded to 11.05, when I open up the Report Explorer I get 2 error
messages about '-' is not a valid integer.

They appear to come from ppDesignDocumentController line 902 and relate to
[Last Reports Accessed] in the rbuilder.ini which in my case are...

[Last Reports Accessed]
Max=5
R0=Finance 4 - Monthly Values,0,0
R1=Finance 3 - Monthly Values,0,0
R2="All Contracts by short name",0,0,1
R3="Customer Job Report",0,0,16
R4=color,0,0,1


If I replace the section with

[Last Reports Accessed]
Max=5


The error messages stop.

Regards

Philip L Jackson

Comments

  • edited June 2009

    Starting with RB 10, the MRU (or LastReportAccessed) feature was re-designed
    to be more reliable. The format is slightly different. In your example, the
    RO and R1 items should have the report names surrounded by " ", like R2 and
    R3.

    Running inside the Delphi IDE the debugger will show an error when RB tries
    to parse an invalid item. However the code that reads each item has a
    try..except block. If you select "continue" RB will ignore the invalid items
    and continue to work correctly. When you exit the Designer, it will update
    RBuilder.ini - the invalid items will be removed.

    An end-user running outside of the Delphi IDE will not see an
    error/exception dialog. The other option is to delete RBuilder.ini when
    updating RB.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.