The SELECT-SQL COUNT field function ignores the SET DELETED ON command in Visual FoxPro 5.0 (166137)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q166137 SYMPTOMS
In Microsoft Visual FoxPro 5.0, theSELECT-SQL COUNT field function does not work correctly when
SET DELETED is ON. It returns the count of all records including the
deleted records instead of just the non-deleted records. However, the SELECT-SQL
COUNT field function works correctly in Visual FoxPro 3.x.
RESOLUTION
Use one of the following commands:
However, using the COUNT TO <memvar> moves the record pointer while using
the SQL-SELECT statement does not.
STATUS This problem does not occur in Visual FoxPro 6.0 and later.
| Modification Type: | Major | Last Reviewed: | 3/17/2005 |
|---|
| Keywords: | kbprb KB166137 |
|---|
|