Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suppress when another field is suppressed
Message
 
 
To
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:
01641389
Views:
144
Thanks - I needed to pad the report with blank lines anyway, so when I built the temp table, I put the condition into a new field and printed when that field was true. Thanks for the idea!

>>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).
Steve Howie, owner
DaSH Technology
Denver, CO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform