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

Value in sub-report

edited December 2003 in General
Hi all, any one know how can I get a value from a sub-report with RAP code?


Thanks in advanced.

Ernesto

Comments

  • edited December 2003

    1. Add a TppVariable to the main report: myVariable1.
    2. From the RB Designer Calc workspace select View | Module.
    3. In the Global Declarations declare

    var
    gMyVariable1: TppVariable;

    4. In the Global.OnCreate add initialization code:

    gMyVariable1 := myVariable1;

    5. Now you can write RAP code in the subreport that can update gMyVariable1.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2003
    Thanks Nard Moseley

    It's works very fine
This discussion has been closed.