FR 3.16 Update Problem
I just finally updated to 3.16 (I believe the last version I was using was 3.12 or so).
Any how, I add variables to my TfrxReport object as such in my C++ code:
Report->Script->Variables["bShowMasterNotes"] = true;
From within the Fast Report fr3 file, I access it as such:
procedure MasterNotesChildBandOnBeforePrint(Sender: TfrxComponent);
begin
with MasterNotesChildBand, Engine do
begin
Visible := ((<AccessoryMasterTable_."Notes"> <> '') AND (<bShowMasterNotes> = True));
end
end;
~~
The <bShowMasterNotes> reference in the script causes an Invalid Variant Operation.
How do I fix this?
Regards,
Shane
Any how, I add variables to my TfrxReport object as such in my C++ code:
Report->Script->Variables["bShowMasterNotes"] = true;
From within the Fast Report fr3 file, I access it as such:
procedure MasterNotesChildBandOnBeforePrint(Sender: TfrxComponent);
begin
with MasterNotesChildBand, Engine do
begin
Visible := ((<AccessoryMasterTable_."Notes"> <> '') AND (<bShowMasterNotes> = True));
end
end;
~~
The <bShowMasterNotes> reference in the script causes an Invalid Variant Operation.
How do I fix this?
Regards,
Shane
Comments
Two of my applications are now BROKEN again because of the recent upgrade.
Regards,
Shane
I am getting a lot of complaints from customers.
Regards,
Shane
Regards,
Shane
the problem seems to be a incompatibility within fr316 because they changed the <> Variable - Tags to old [] behavoir (fr25). So you have to change all your scripts
from
<MyVar>:=<MyVar>+1;
to
[MyVar]:=[MyVar]+1;
I also went back to a earlier version because its immpossible for our team to change all customer - reports. I hope fr will fix this in the next release but got no awnser till now.
Daniel
http://www.fast-report.com/en/forum/?p=/discussion/2531
and
http://www.fast-report.com/en/forum/?p=/discussion/2531
I was able to get a copy of my backup of version 3.12 from our server and I have reinstalled it for now (my primary business is in New Orleans so I am very busy now and don't have time either to fix several hundred reports).
Best Regards,
Shane
Thanks - I am downloading FR 3.17 from my car now as my partner and I drive to New Orleans to check out our office.
I will try it later tonight / tomorrow with my hobby program Drivers Log.
Best Regards,
Shane
---
you should use [] or <> (what you want - both are equals) for:
- dataset/field: <ds1."fld1"> or [ds1."fld1"]
- system variables: <Page> or [Page]
- variables supplied by TfrxReport.OnGetValue event: <myVar> or [myVar]
- report variables defined in the Report|Variables menu, or passed by
TfrxReport.Variables := ... : <myReportVar> or [myReportVar]
all other things such as script variables (defined in a script, or passed by
TfrxReport.Script.Variables := ..), functions, methods, objects -
should be acessed without [] or <>.
---