Variable Returned to Delphi Code is Null

edited 5:24PM 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 5:24PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.