Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count logical fields
Message
From
18/11/2005 17:55:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/11/2005 17:50:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01070432
Message ID:
01070435
Views:
10
>Is there a simple way to total up the number of records that have a TRUE value in a logical field within the frx file?
>
>I suppose I could preprocess the number before calling the report but that seems overly complex. Yet I can't seem to find a simple way to do it within the report definition.
>
>Thanks for any suggestions.

Create a report variable, set its value to iif(LogicalField, 1, 0), and tell it to sum.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform