FR-Designer

Hi, in the FR-Designer, I would like to format the Bill-Positions.
When the Position has a special code, then I would like to show '----' instead of the Amount.

It could look like this:

begin
myAmount := [DialogForm.qryFaktPos."BETRAG"] ;
if ([DialogForm.qryFaktPos."POS"] = -1006) then begin
myAmount := '
';
end else begin
myAmount := myAmount;
end;
end


What's the correct way?

Thanks for help
Willi

Comments

  • edited 8:21PM
    On data band that holds the bill positions add some code in OnBeforePrint:
    begin
      if (([DialogForm.qryFaktPos."POS"] = -1006) and FinalPass) then
        Memo1.Memo := '---------' else
          Memo1.Memo := [DialogForm.qryFaktPos."BETRAG"];
    end
    

    Memo1 is field to show "BETRAG".

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.