Hi Dave,
In old FPD2.6 days I used this solution, which probably still can be used:
Before calling a report define private variable, say, Group_Counter.
In Group heading put Fun_Group()
Create this Function (independant program with Fun_Group name) with just one line of code
Group_Counter=Group_Counter+1
This should work, I believe. I haven't tested it and it's just as I can recall.
HTH
>Does anyone know how to create a field that increments in a group header in VFP 5. For example, lets say I have a product that has a code "PRODUCT A" and this product is made up of several other products. The Group header is the Product and the detail is the items making up the product. I want the report to add a 1, 2, 3 etc for each product. Similar to the following.
>**********************************************************
> ITEM CODE QTY PRICE
> 1 Product A 1 10.00
> 1 widget
> 3 bolts
>
> 2 Product B 3 5.00
> 2 widgets
> 1 screw
>**********************************************************
>
>I always end up with a count of the details.
>
>Thanks for any help
If it's not broken, fix it until it is.
My Blog