Create/Fill Array in MasterData and Read it in GroupFooter

edited 8:44AM in FastReport 4.0
In the MasterData i fill a Array with String. In the Footer i will work with the Array but it's empty,
why it is empty?
What is the correct way?
How can I clear the Array after work in the GroupFooter or begin in the GroupHeader?

Thanks for Help, Stefan


var belegung: TfrxArray;
var satz : string;


procedure MasterDataOnBeforePrint(Sender: TfrxComponent); {MasterSatz abarbeiten}
begin
..
..
belegung := TfrxArray.create;
belegung := satz;

End;

procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);

begin

for i1 := 1 to i do begin {Abarbeiten der Tabelle}
memo9.Text := belegung[i1];
..
..
end;
end;

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:44AM
    create the array in the empty
    begin
    end.
    block of the code page so the array is global to the events
  • gordkgordk St.Catherines On. Canada.
    edited 8:44AM
    in fact why even create the array
    you can add the strings to the memoviews memo directly in the databand and clear the memo in the oap event of itself or the footerband

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.