Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count Unique Customers in Footer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01102497
Message ID:
01102594
Vues:
23
>>OnEntry _VFP.SetVar('lnCustomers', 0)

I actually need to have a lnCustomers, lnCustomer2, and lnCustomer3. There are many footers and I need to show the total number of customers per day, then per week, then per month. What is the sytax to define multiple variable OnEntry?

I did try to just make my lnCustomers variable PUBLIC in the .prg that calls the report, but when I zoomed in and out of the report the lnCustomer totals kept increasing, even as I stayed on the same page.


>You can't because you muse increase its value ONLY when you leave Customer Group
>
>>Why the need for the _VFP.SetVar?? Can I use just a regular Report Variable?
>>
>>Thanks
>>
>>Brenda
>>
>>
>>>>I have a weekly report that details the products ordered for each day. The data is sorted by date, customer, product number. There is a footer for customer and date. But in the date footer, I want a count of the number of unique customers for that day. How can I do this?
>>>>
>>>>thanks
>>>>
>>>>Brenda
>>>
>>>How is your data presented? This may be too complicated, but that's first what comes to my mind:
>>>
>>>local lnCustomers
>>>lnCustomers = 0
>>>REPORT FORM myReport ...
>>>
>>>
>>>
>>>OnEntry _VFP.SetVar('lnCustomers', 0)
>>>Date - group header
>>>  Customer group header
>>>     Details
>>>  Customer group footer
>>>  onExit function _VFP.SetVar('lnCustomers', m.lnCustomers + 1)
>>>Date group footer
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform