Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group report by 2
Message
From
25/06/2004 15:15:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00917115
Message ID:
00917350
Views:
11
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform