PRB: CRecordset::Move(0) Asserts with skipDeletedRecords Option (165606)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q165606 SYMPTOMS
When you open a CRecordset with the skipDeletedRecords option set, it's
Move() member function asserts if the nRows parameter is 0.
CAUSE
The reason for this behavior is to prevent the refresh of rows that are
deleted by other client applications using the same data. Since no scroll
direction is specified by a Move(0) call, it is not possible to determine
which record to skip to if the current record was deleted. A Move(0) on a
deleted row would have an ambiguous outcome. To prevent the possibility of
doing a Move() to a deleted record, Move(0) is not allowed when the
skipDeletedRecords option is set.
STATUS
This behavior is by design.
| Modification Type: | Major | Last Reviewed: | 12/10/2003 |
|---|
| Keywords: | kbDatabase kbprb kbusage KB165606 |
|---|
|