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 2:54AM
    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