Changing memo text during report preparation

edited 4:54AM in FastReport 4.0
Hi, in my database I've got field called "present". And this field can have 2 values: 0(zero) or 1.

Then on my MasterDataBand I have memo connected to this field.
But I don't want this memo to show 0 or 1, just words. So I wrote in OnBeforePrint:
case <frxDBDataset."present"> of
    0: PresenceMemo.Text:='Not present';
    1: PresenceMemo.Text:='Present';
  end;

but it doesn't work. Why?
Memo still shows 0 or 1

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:54AM
    don't connect the memo to the field and remove any text in the memo that looks like
    [datasetname."fieldname"]
  • edited 4:54AM
    OK, thx, that works fine.

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.