Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppress when another field is suppressed
Message
De
22/09/2016 20:18:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01641222
Message ID:
01641228
Vues:
69
>I have a report field that suppresses duplicate values in my report. I would also like to suppress other fields when the first one is suppressed, but I don't see how to check to see if a field is suppressed. Is there a simple method to have field2 print only when field1 does?
>
>Thanks in advance!

What if you stored the values you've put in the Print When into variables, then referencing those variables in the Print When?

For example, let's say you've got three columns -- A, B and C and you want C printed conditionally depending on if A and B are printed. You assign lbPrintA to the value if column A should be printed, lbPrintB to be when B should be printed. In the Print When for column C you could put something like "m.lbPrintA AND m.lbPrintB" (if you want C to print only when both A and B are printed), "m.lbPrintA OR m.lbPrintB" (if you want C to print if either A or B are printed), or "m.lbPrintA # m.lbPrintB" (C should print only when either A or B is printed, but not when both A and B are printed).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform