Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel Response in Report Form
Message
From
21/11/1997 16:48:06
 
 
To
21/11/1997 16:32:22
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00061672
Message ID:
00061678
Views:
55
>To All and Sundry Greetings:
>
>We have a piece of code which looks like this:
>
> REPORT FORM name1 TO PRINT PROMPT NOCONSOLE
> REPORT FORM name2 TO PRINT NOCONSOLE
>
>When the user presses the button in response to the PROMPT, the second report still prints. How can I capture the fact that the button was pressed so that I can supress printing the second report.
>
>I am brand new to this group and don't really know my way around it yet. If you could also E-mail any response to me at: RICHLP@WORLDNET.ATT.NET it would be greatly appreciated.
>
>Thanks all.

The idea is to create variable in Report Form 'name1' to store e.g. count of records. Then your code will look like:
nCheck=0
REPORT FORM name1 TO PRINT PROMPT NOCONSOLE
if nCheck<>0 && you really ran report
REPORT FORM name2 TO PRINT NOCONSOLE
endif
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform