Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress when another field is suppressed
Message
From
22/09/2016 20:18:06
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01641222
Message ID:
01641228
Views:
68
>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).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform