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

Variable and DBCalc

edited June 2004 in General
Hi,

is it possible to combine TppVariable and TppDBCalc components to do
calculations? For example have TppDBCalc calculate Total Cost based on
record values and have TppVariable calculate Sales Tax based on TppDBCalc
value. Can those calculations be done in Summary band?

Thanks in advance.

Comments

  • edited June 2004
    Hi,

    It may be possible to make calculations with a simple DBCalc component and a
    Variable such as the grand total of a single detail band. However, as a
    rule of thumb, when making calculations, you generally want to use only
    TppVariable components and the OnCalc event. For instance, you could place
    a TppVariable inside the detail band and in its OnCalc event, update the
    value of another TppVaraible in the summary band. Then you could use the
    value of that variable to make more calculations inside the summary band if
    you need.

    --
    Thanks for supporting ReportBuilder! Please vote for ReportBuilder in the
    Delphi Informant Readers Choice awards!

    http://www.delphizine.com/ballot2004/

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.