>>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)