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

Report Compilation error

edited June 2012 in RAP
Hi,

Another problem i'm experiencing since upgrading from 11 to 14 is that
the following gives me an error now. The error is

procedure ReportBeforePrint;
begin
Label13.Visible := (nmemo['REFNO'] = 'DRAFT');
end;

Error: ReportBeforePrint, Line 3: Expected '(' or '[', but found '['
instead.

Cheers

Alex

Comments

  • edited June 2012
    Hi Alex,

    In my testing with RB 14.05 and the DBDEMOS database, the following code
    (similar to yours) compiled and functions correctly in RAP.

    procedure ReportBeforePrint;
    begin
    Label1.Visible := (customer['Company'] = 'Kauai Dive Shoppe');
    end;

    Are you certain nmemo is a valid datapipeline name?

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2012
    Hi Nico,

    Thanks for the reponse. I'm selecting and dragging the values from the
    Code Toolbox where the datapipeline i need is displayed.

    cheers

    Alex

  • edited June 2012
    Hi Nico,

    I did some more investigation and renamed the datapipeline that was
    giving me the problem and it is working. Odd as the particular report
    worked fine in version 11.


    Thanks for all your help

    Cheers

    Alex

This discussion has been closed.