Set Child band invisible
Why does this code from within Delphi does not set the FR child band invisible?
frxReport1.FindObject('Child1').Visible := false
Comments
In order not to show a blank child band if the only contained field is empty though, I use this code in OnBeforePrint:
This of renders the setting in Delphi obsolete, of course.
Is there a simple way not to show a empty child band?
Or how could I tell FR that the above code should only be executed if child1 shall be displayed at all?
(It is an optional information that the user chooses to display or not display before print)
When I put:
in Delphi, I get an "undefinied identifier" error.
Do I need to add a library to uses?
It seems as if i don't declare HideChild1 variable I get an undefined identifer in FR.
Also, adding Hidechild1 variable in FR does not help (screenshot).
?
If you want - you may use report variable instead of script variable