Variable Returned to Delphi Code is Null

edited 3:00PM in FastReport VCL 5
I'm using Delphi XE8 and Fastreports FMX. In my script, I placed a showmessage so I know the variable is being assigned properly but when I try to access the variable from the delphi code it is always null. I tried accessing the variable in all these events but the result is always null - onenddoc, ongetvalue, onprintpage, onprintreport.

Where can I access the variable and retain the value set in the script?

thank you

Comments

  • edited 3:00PM
    jayE wrote: »
    I'm using Delphi XE8 and Fastreports FMX. In my script, I placed a showmessage so I know the variable is being assigned properly but when I try to access the variable from the delphi code it is always null. I tried accessing the variable in all these events but the result is always null - onenddoc, ongetvalue, onprintpage, onprintreport.

    Where can I access the variable and retain the value set in the script?

    thank you


    Solved it myself - need to reference report.script.variables not report.variables to get the value from the script

Leave a Comment