Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group report by 2
Message
De
25/06/2004 15:15:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00917115
Message ID:
00917350
Vues:
10
>>Let me see; perhaps I was confusing it with recno(). Would the variable be increased AFTER the record is printed?
>
>Ah .. I see where the confusion is. The first time the data group expression is getting evaluated, the variable hasn't been processed yet because the detail band hasn't been processed yet, so int(0/2) = 0.
>
>Variables don't get processed until the detail band is about to be processed. Any Page header or Group Header is processed BEFORE the report variables for the next detail band are processed.

Thanks for the clarification. That is quite interesting; if I print an incrementing report variable in the detail band, it will have the new value; if I use it to establish groups, it will have the old value! I didn't know that.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform