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

Concatenate Fields

edited February 2002 in General
In Quick Reports, I would use an Expression component to concatenate fields,
like firstname+lastname. Is there a similar component in ReportBuilder that
I am overlooking? I am designing a form where the customer first name and
last name from a table need to be on the same line with one space between
them.

David Miller

Comments

  • edited February 2002
    You can create a Label component and code the concatenation in the
    BeforePrint event of the band containing the component. With this approach
    you would be using a real Delphi event handler.

    If you want to save the event handler in the report layout itself, you'll
    ReportBuilder Enterprise Edition, which contains Report Application Pascal,
    or RAP for short. RAP allows you to code event handlers in the context of a
    run-time application.

    --
    Tom Ollar
    Digital Metaphors Corporation
  • edited February 2002

  • edited February 2002
    Another easy way is to define a calculated field in your Delphi ttable. But
    I don't know if that is as efficient as the two other methods mentioned -
    comments?


This discussion has been closed.