Visible / Hidden - How?

In Fr2.5 it was quit easy to prevent an object from showing by simple writing the necessarry code in the lower memo, but in Fr3 I run into problems doing the same. That's what I've tryed:
procedure GroupNameOnBeforePrint(Sender: TfrxComponent);
begin
  TfrxMemoView(Sender).Visible := <Line> = 1;
end;

But it doesn't work! The <Line> itself seems to be interpreted well:
procedure GroupNameOnBeforePrint(Sender: TfrxComponent);
begin
  TfrxMemoView(Sender).Memo.Text := <Line>;
end;

This shows the <Line> beginning from 1...x!

So how to write the logic above in a valid manner?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:49AM
    in the obp event of the band containing the memo
    memoname.Visible := <Line> = 1;
    ;)
  • edited 2:49AM
    THX - it works, but I didn't understand why it doesn't work in the obp event of the memo itself!?!?!?!
  • gordkgordk St.Catherines On. Canada.
    edited 2:49AM
    for some reason the expression on the right does not equate to true in the obp of the memo may be syntax i'll test later.
    ;)

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.