Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of groups
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00101101
Message ID:
00101508
Vues:
32
>For example, if your group breaks on a field 'MyData.TYPE' Make 2 variables. The first is cType, Value to Store: MyData.TYPE, Initial Value: '' (Use the correct type here, '0' for numeric, etc.)
>
>The second is GroupTot,
>Value to Store: grouptot + iif(ctype = MyData.TYPE, 0, 1), Intial Value: 0.
>
>Put them BOTH in the group footer. If you don't want to see the cType variable, simply set the Print When to .F..

You can define report variables (not fields) that are never printed unless you define a field that prints such a variable.

Just as a VFP trick, I believe this can be done with just one public variable defined outside the report:

MyCounter = 0 && Outside the report

Define a report variable with the name "MyCounter":

Initial value: MyCounter = MyCounter + 1
Value to store: MyCounter

This way, at detail level, its value remains unchanged and it increments when the group changes.

Probably this will work... :)

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform