Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page n of m from a program
Message
From
28/11/2003 08:09:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00854111
Message ID:
00854176
Views:
39
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform