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:40PM
    You should add variables before running a report such way:

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

Leave a Comment