Topic: How to add a Variable to a Fastreport?
Hi to all,
The manual of Fastreport says that this should work:
var
Variable: TfrxVariable;
Variable := frxReport1.Variables.Insert(1);
// or alternative Variable := frxReport1.Variables.add;
Variable.Name := 'My Variable 1';
Variable.Value := 10;
When I try this I get only an Errormessage.
Any other way to add variables to a report, I don't want to have in the database?
Its for cash box reports. The Variables will show the Report start date and Report end date.
Thank you for help.