Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is UDF in detail band called multiple times?
Message
 
À
27/09/2001 15:30:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00561609
Message ID:
00561641
Vues:
22
>VFP internally calls it for who knows which reason, just to make sure everything prints right. I observed that behavior ten years ago, and the solution was to keep a report variable which will store the recno(), and the function would check if this has changed, in which case it stores the current recno() to the variable and does what it was written for, else it just exits. This variable should be zero initially.
>
>Maybe a better solution would be to have this function as OnEntry of the detail band; haven't played with it but it may be called only once per band.

Dragan,

Thanks for your reply. I have been playing with using the recno() in my function, but this does not help if I also want the greenbar effect in group subtotals. I am trying to give the user the ability to select how many lines (1-5) of greenbar they would like. I am having mixed results when the report goes from detail to several different group totals.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform