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

Variables and Groups in 6.03

edited January 2003 in General
Hi,

I have 6.03, delphi 5.

I have been trying to use ppvariables and am very confused.

I can illustrate the problem with:

I started with a simple detail attach to a table.
I added a dbtext field and a variable. The on calc of
the variable I made Value:=Value+1;

Preview and it is right. It has 1, 2, 3, etc.

I put in a group based on data field the is always blank and
I change the timing for the variable to be BeforeGroupHeader
and that group.

Preview and it is now 0, 1, 2 etc. Off by one.

I tried changing the timing to GroupStart etc. They do not
work.

What am I doing wrong.

Joseph Gordon

Comments

  • edited January 2003
    I just created a report like this using RB 7.01 and it works just fine. I
    placed the variable in the group header and detail. I used both OnTraversal
    timing and BeforeGroupHeader timing. The OnCalc event is
    Value := Value + 1;

    Can you send a demo to support@digital-metaphors.com which shows this
    problem?

    I used RB 7.01 in this test. Please download RB 7.01 trial edition to see
    if the problem goes away with the latest version and then send us an
    example. If RB 7.01 trial fixes the problem, the you'll want to upgrade
    your license to RB 7.01. Order from our website www.digital-metaphors.com or
    shoot an email to info@digital-metaphors.com to inquire about upgrade
    pricing for your current registered license.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Hi,

    I was just able to fix it by changing the timing to GroupEnd instead of
    GroupStart.
    I have 7.0 but have not had a chance to update.

    Thank you for your help.

    Joseph Gordon


This discussion has been closed.