Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sequence Number for each Group
Message
 
 
À
11/09/2000 14:23:09
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00414032
Message ID:
00415040
Vues:
24
Cindy,

Actually, I wrote it using my memory :) Back in FPD2.6 days I used this method to increment counter in a group. Perhaps, I used slight modification of it. It worked fine then :)

>Nadya,
>
>When I tried this method I had problems with nCounter not being in scope when going from the calling routine to the report to the function in another prg somewhere. I didn't try a PUBLIC variable because I wanted to avoid that.
>
>That's why I posted the form property/form method solution, which worked when I tried it.
>
>
>
>>Hi Clarissa,
>>
>>Create a variable before calling your Report:
>>private nCounter
>>nCounter=0
>>In report on group Footer put NewCounter()
>>Create a function (in a prg) called NewCounter, put it in the same directory, where you have your report.
>>
>>Function NewCountetr
>>nCounter=nCounter+1
>>return nCounter
>>
>>
>>HTH
>>
>>>Hi tim,
>>>I have a collection of data grouped by date and I want to show a sequence number: 1,2,3 and so on when VFP report prints each group total.
>>>e.g:
>>> Id. no date out amount
>>> 001 22-09-2000 100
>>> 052 22-09-2000 200
>>> 053 22-09-2000 50
>>> -----------------------------
>>> subtotal 1. 350
>>>
>>> 025 23-09-2000 75
>>> 026 23-09-2000 125
>>> -----------------------------
>>> subtotal 2. 200
>>>
>>>Thanks a lot for your help,
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform