Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Summary variable?
Message
 
 
To
04/11/2003 15:21:09
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00846146
Message ID:
00846184
Views:
26
>Is there a built in variable or function to determine if the report is running in summary mode so that I can set the Print When function to something like _psummary=.t. ?
>
>Thanks.

Darren,
VFP doesn't have this but you could set something like it up.

The SUMMARY keyword causes VFP to abort execution of anything in the Detail band. If you had something in another part of the report that you wanted to base this on, you could create a variable in the On Enter of the Detail band or you could assign an existing variable a new value. To create or assign a new value to a variable in the On Enter, do the following:
_VFP.DoCmd([luvar="somevalue"])
If the variable didn't exist prior to the report, it will be created as public. If it did, it will remain as private in scope.

Check for the value of that variable in your Print When expression and print appropriately.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform