Access items in code
Hi All,
I know it is possible to access a component in FastReports with
Memo1 := frxReport1.FindObject('Memo1') as TfrxMemoView;
But is it also possible to access a couple of TfrxMemoView objects in a loop like:
For Counter := 0 to frxReportTitle.ComponentCount-1 do
If frxReportTitle.Components[Counter] = TfrxMemoView
Then frxReportTitle.Components[Counter].Visible := False;
I tried something like this but I don't know how to fill in the rest of the code
For Counter := 0 to frxReportTitle.Objects.Count-1 do
If .........
Then .............
Thanks in advance.
Peter
I know it is possible to access a component in FastReports with
Memo1 := frxReport1.FindObject('Memo1') as TfrxMemoView;
But is it also possible to access a couple of TfrxMemoView objects in a loop like:
For Counter := 0 to frxReportTitle.ComponentCount-1 do
If frxReportTitle.Components[Counter] = TfrxMemoView
Then frxReportTitle.Components[Counter].Visible := False;
I tried something like this but I don't know how to fill in the rest of the code
For Counter := 0 to frxReportTitle.Objects.Count-1 do
If .........
Then .............
Thanks in advance.
Peter
Comments