Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

New to Rbuilder : How to combine fields?

edited May 2003 in General
Hi
I want to write NAME and SURNAME fields together in a report. What is the
simlest way to do this? (SURNAME must immediately follow the NAME field).

Thanks in advance
Teknik

Comments

  • edited April 2003
    Hi Teknik

    I would create a calculated field.

    regards,
    Chris Ueberall;
  • edited April 2003
    Teknik,

    The easiest way to combine two data fields is to add them to a single
    TppVariable on your report. The code will look something like the
    following...

    procedure TForm1.ppVariable1Calc(Sender: TObject; var Value: Variant);
    begin
    Value := Report.DataPipeline['FName'] + ' ' +
    Report.DataPipeline['LName'];
    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2003
    you could try to concat it in the database

This discussion has been closed.