How to determine the number of records that are returned by a SELECT-SQL statement in Visual FoxPro (113808)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q113808 SUMMARYIn Microsoft Visual FoxPro
You can create generic SELECT-SQL statements that programmatically produce
result sets of records to be output for viewing in a number of ways.
However, in certain instances, a SELECT-SQL statement may not produce any
records in the query based on the SELECT-SQL criteria provided.
To avoid having a program act upon an empty result, the system variable
_TALLY can be evaluated immediately after a query has been executed in
order to determine the number of records that have been selected. For more
information about _TALLY, see the code example below.
Modification Type: | Major | Last Reviewed: | 3/16/2005 |
---|
Keywords: | kbcode KB113808 |
---|
|