Script variables |
Top Previous Next |
Instead of report variables, script variables are in the TfrxReport.Script. You can define them using FastScript methods. Let's look at some differences between report and script variables:
Working with script variables is easy. Just assign a value to the variable like this:
Pascal:
frxReport1.Script.Variables['My Variable'] := 'test';
C++:
frxReport1->Script->Variables->Variables["My Variable"] = "test";
Here FastReport creates the variable if it does not exist, or assigns the value to an existing variable. There is no need to use extra quotes when assigning strings to variables.
|