Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with _pageno
Message
 
À
06/11/2001 17:54:00
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:
00578137
Message ID:
00578283
Vues:
21
..snip..

Hi Dragan,

I tried putting code in the onexit of a group "_pageno = 0"..but that didn't seem to work. Maybe I can't put the code directly and must call a function?

>
>Here's a cheezy and dirty trick, but might work. Create a report variable nPages, set it to zero, calculate nothing. Write a function, name it, p.e. StoreNPages.prg:
>
nPages=nPages+_pageno
>(yes, a one-liner), and call that function on exit in category group. Instead of _pageno, print nPages+_pageno. That's it.
>
>Or if you are having the oposite problem, that the _pageno is not resetting, and you need it reset, this can work as well, even simpler. Forget the report variable, and just have a function which will set _pageno=0 each time your group exits.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform