>>>Because it'll print on the first page first and I want it to print AFTER the Grower and flock information
>>>
>>
>>Can you make the second group expression longer, so it would always come second?
>>
>>Say, group on CustNo + ".T."
>>
>>>
>>>>Why not make it a separate group and mark it as Reprint group header on each page?
>>>>
>
>I got it to work by setting a switch back and forth. thanks for you help.
>
>One question: In the 'on exit' code of the group footer, what is the difference between saying
>
_vfp.setvar('var1', var1 + 1)
>and the old
var1 = var1 + 1
You can not do it directly this way, you need to call some function. You can do instead in OnExit
myIncrementVarFunction(var1) that would do the same, but _VFP.SetVar is a simpler way.
In other words, OnExit allows to call functions, but don't allow commands.
If it's not broken, fix it until it is.
My Blog