How To Demonstration of ADO Bookmarks and Move Methods (194610)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
This article was previously published under Q194610 SUMMARY
The ActiveX Data Objects (ADO) Recordset object has methods and properties
that allow you to use it to perform FoxPro-style record navigation.
When you open a Recordset object, each record is assigned a unique
bookmark. You can use the Bookmark property to save the location of the
current record so you can return to it at a later time.
Not all Recordset objects support bookmarks. For example, forward-only and
dynamic cursors do not support the use of bookmarks. You can use the
Supports property of the recordset to determine if it supports bookmarks.
The EOF property is set to true when the user tries to move past the last
record of a Recordset.
The BOF property is set to true when the user tries to move to a location
before the first row in the Recordset. The next attempt to MovePrevious
results in a run-time error. Both BOF and EOF are set to true if the
recordset is empty.
The various move methods (MoveFirst, MoveLast, MoveNext and MovePrevious)
are similar in effect to the FoxPro SKIP and GOTO commands.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbDatabase kbhowto KB194610 |
---|
|