Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RecCount() And Filters
Message
From
17/07/2001 08:00:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00531079
Message ID:
00531443
Views:
11
>I've been wondering this for a while: Is there an accurate way to determine how many records are in a filtered table? RecCount() doesnt' work, it's not affected by filters. _TALLY doesn't work, Filters aren't an SQL command. (or at least Set Filter To isn't).
>
>What am I missing? Surely you don't have to select it to a cursor to find out how many were returned?
>
>TIA!

_tally does work, but you have to COUNT first. SET FILTER doesn't actually process any records.
SET FILTER TO ...
COUNT
? _TALLY
GO TOP
Of course, as many of the other responses stated, you can COUNT directly to a variable.
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