Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page n of m from a program
Message
De
28/11/2003 08:09:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00854111
Message ID:
00854176
Vues:
40
>>The text quoted from the help file seems to indicate that it would be sufficient to use _pagetotal in the report, even if you don't use it directly.
>>
>>In other words, you don't need to put your entire complicated expression (which might change eventually) into the report designer; it is probable enough to use a dummy report variable, like: DummyPageTotal = _pagetotal
>>
>>Provided this works at all, you must still touch each individual report, but you will not need to change it, if you later decide to change the expression.
>
>Yes, having a variable with the value to store _pagetotal will suffice, you don't have to use the variable.
>But we must still modify all reports, that is bad enough.

Perhaps you find a better way.

>Plus, what I don't like about the dummy is that in 4 years from now someone else will look at one report, and finding no use for the dummy will remove it, only to find out (right then, if he is a good tester, or after months, when the user decides to complain) that the page numbering is wrong for no apparent reason. I am still considering this though...

You might give your variable a more relevant name, to (hopefully) avoid this:

_ForcePass1 = _PageTotal
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform