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

Best place to reset variables

edited December 2004 in General
The report has grouping and the variables are in the Detail band. So
it prints the record and its details and adds to the variable. I then
print the variable total in the group footer. Now it prints the next
record and so on.

I want to reset the variable as soon as I get the first record (but I
cannot see an event to do this). Presently I am resetting it after the
group footer print event but this does not take into account the first
record.

thanks

Comments

  • edited December 2004
    Hi Pat,

    You can use the TppVariable.ResetType property to define when you would like
    that variable to reset. This property can be accessed at design time from
    the Delphi Object inspector or from the designer by right clicking on the
    variable and selecting the "Timing" option from the popup menu.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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