Home RAP

Subreports losing variable from main report

edited October 2002 in RAP
I have a report with multiple nested subreports.

I can preview the report in the designer and it is correct the first go. If
I immediately preview again, I get a compiler message telling me it could
not compile DetailAfterGenerate3. I am calculating a Global Variable in
this event that is declared in the main report.

aVar1 := aVar1 + plPipeline['Value'];

This is for a value to be used in the summary of the report.

It compiles and works great on the first try. But after getting the above
error, I go back to RAP and it no longer compiles. Also, my Main: Variables
is no longer visible in the Subreport either.

I am running RB 5.56, Delphi 5.0, and NT4.0.

Any thoughts,

Comments

This discussion has been closed.