Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel Response in Report Form
Message
De
21/11/1997 16:48:06
 
 
À
21/11/1997 16:32:22
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00061672
Message ID:
00061678
Vues:
49
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform