how to display with different value of field?

hello
i want to display a dataset field with different types,such as the the field 'wife' of the dataset is not empty,then i want to show wife:.....,if the field is empty,then will display nothing,how to do this?
thanks.

Comments

  • PJCFPJCF Jersey, Channel Islands, UK
    edited 8:20PM
    I have done a similar thing using the following code for in the OnBeforePrint for Memo25 (title field) and Memo23 (data field)
    procedure Memo25OnBeforePrint(Sender: TfrxComponent);
    begin
      if <frxDBPO."PODue"> < 1 then begin
        Memo25.text := '';
      end else begin
        Memo25.text := 'For delivery by:';
      end;
    end;
    
    procedure Memo23OnBeforePrint(Sender: TfrxComponent);
    begin
      if <frxDBPO."PODue"> < 1 then begin
        Memo23.text := '';
      end else begin
        Memo23.text := <frxDBPO."PODue">;
      end;
    end;
    
    begin
    
    end.
    

    Hope that helps - Peter

Leave a Comment