Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of records on a filtered table
Message
From
15/09/2008 21:03:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/09/2008 20:56:04
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347777
Message ID:
01347780
Views:
8
>I have a table that has a filter. If no records satisfy the filter, how can I tell? The RecCount() shows the number in the table, not just those in the filtered result. I need to know if the filtered result is empty.
set filter to ...
go top
if eof()
  * Empty
endif
To find the actual number of records, you can use the COUNT command.
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
Next
Reply
Map
View

Click here to load this message in the networking platform