Accessing Variables in program from Script

Is there a way you can access variables in your program from the script inside fastreport? I am using internal datasets and I need access to certain variables in the program.

I know I can pass the variables when the report loads, but I am working under the assumption that I will not always know what variables the report needs, which is why I'd like to be able to distribute a report that can access certain vars from script.

Thanks,

Jason S. Gagnon

Comments

  • edited 3:24AM
    You should add variables before running a report such way:

    frxReport1.Script.Variables := 10;
    or
    frxReport1.Script.AddVariable('MyVar', 'Integer', 10);

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.