Rave Param Equivalent in FR
I am converting from Rave to Fast Reports.
My rave project has a number of parameters which are set programatically from a Delphi form :
eg:
rvProject.SetParam('lblCriteria',rsCriteria);
This sets a parameter in the rave project which I then use in a data text component on the report.
I set the component's DataField property to Param.lblCriteria
What is the equivalent in Fast Reports?
My rave project has a number of parameters which are set programatically from a Delphi form :
eg:
rvProject.SetParam('lblCriteria',rsCriteria);
This sets a parameter in the rave project which I then use in a data text component on the report.
I set the component's DataField property to Param.lblCriteria
What is the equivalent in Fast Reports?
Comments
I created one like page 33 or the Programmers Manual:
procedure TForm1.frxReport1GetValue(const VarName: String;
var Value: Variant);
begin
if CompareText(VarName, 'My Variable') = 0 then
Value := 'test'
end;
and on the report:
create the report and lay the "Text"
object to it. Type the following text in this object:
[My Variable]
But when I run the report it says error in expression 'My Variable': ';' expected.
TForm1.frxReport1GetValue is assigned to TfrxReport.OnGetValue from your source.
I do not create the variable in the report and it works.
But you can not use spaces in variable names.
"MyVariable" is OK, but "My Variable" is not.