Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to count the number of groups in a report?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00002172
Message ID:
00002283
Vues:
36
>>>But, How do you define a variable that counts
>the
>>>number of distinct values myGroup_id takes at
>the
>>>end of the report?
>>
>>i can think of a couple of ways to achive this
>>
>>1. calculate it befoe the report and print that
>>var inside the report
>
>The one i didn't want to do :)
>
>>2. add a variable to the report and use the On
>>Entry expression
>>to add 1 to the new var. (eg.
>>lnCounter=lnCounter+1 :) )
>
>I tried this one, but it seems like expressions
>don't accept assignation of values (it doesn't
>give an error, but the variable is just not
>incremented), or maybe i did something wrong
>(wouldn't be the first time :))
>
>Thanks for you reply Arnon


If nothing else, run your routine from a UDF (to a PRG) in a report field.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform