_RecordsetPtr的MoveFirst, MoveLast, MoveNext, 与 MovePrevious 方法
2014-04-01 21:10
549 查看
The MoveFirst Method
MoveFirst方法
This method is used to move to the first record in a Recordset object. It also make the first record the current record.
Method方法的作用是:将记录指针移动到记录集中的第一条记录。它以第一条记录作为当前记录。
Note: Calling MoveFirst or MoveLast when the Recordset is empty generates an error.
注意:当记录集为空时,请求MoveFirst或MoveLast将产生一个错误。
The MoveLast Method
MoveLast方法
This method is used to move to the last record in a Recordset object. It also make the last record the current record.
Method方法的作用是:将记录指针移动到记录集中的最后一条记录。它以最后一条记录作为当前记录。
Note: Calling MoveFirst or MoveLast when the Recordset is empty generates an error.
注意:当记录集为空时,请求MoveFirst或MoveLast将产生一个错误。
Note: An error will occur if the Recordset object does not support bookmarks or backward cursor movement.
注意:如果记录集对象不支持书签或不能向后移动指针,那么将产生错误。
The MoveNext Method
MoveNext方法
This method is used to move to the next record in a Recordset object. It also make the "next" record the current record.
Method方法的作用是:将记录指针移动到记录集中的下一条记录。它以下一条记录作为当前记录。
Note: If you call this method when the current record is the last record, it generates an error.
注意:当当前记录指针位于最后一条记录时,如果你请求这个方法,将产生错误。
The MovePrevious Method
MovePrevious 方法
This method is used to move to the previous record in a Recordset object. It also make the "previous" record the current record.
Method方法的作用是:将记录指针移动到记录集中的上一条记录。它以上一条记录作为当前记录。
Note: An error will occur if the Recordset object does not support bookmarks or forward cursor movement.
注意:如果记录集对象不支持书签或不能向前移动指针,那么将产生错误。
Note: If you call this method when the current record is the first record, it generates an error.
注意:当当前记录为记录集中第一条记录时,如果你请求该方法,那么它将产生一个错误。
Syntax
语法 objRecordset.MoveFirstobjRecordset.MoveLastobjRecordset.MoveNextobjRecordset.MovePrevious
MoveFirst方法
This method is used to move to the first record in a Recordset object. It also make the first record the current record.
Method方法的作用是:将记录指针移动到记录集中的第一条记录。它以第一条记录作为当前记录。
Note: Calling MoveFirst or MoveLast when the Recordset is empty generates an error.
注意:当记录集为空时,请求MoveFirst或MoveLast将产生一个错误。
The MoveLast Method
MoveLast方法
This method is used to move to the last record in a Recordset object. It also make the last record the current record.
Method方法的作用是:将记录指针移动到记录集中的最后一条记录。它以最后一条记录作为当前记录。
Note: Calling MoveFirst or MoveLast when the Recordset is empty generates an error.
注意:当记录集为空时,请求MoveFirst或MoveLast将产生一个错误。
Note: An error will occur if the Recordset object does not support bookmarks or backward cursor movement.
注意:如果记录集对象不支持书签或不能向后移动指针,那么将产生错误。
The MoveNext Method
MoveNext方法
This method is used to move to the next record in a Recordset object. It also make the "next" record the current record.
Method方法的作用是:将记录指针移动到记录集中的下一条记录。它以下一条记录作为当前记录。
Note: If you call this method when the current record is the last record, it generates an error.
注意:当当前记录指针位于最后一条记录时,如果你请求这个方法,将产生错误。
The MovePrevious Method
MovePrevious 方法
This method is used to move to the previous record in a Recordset object. It also make the "previous" record the current record.
Method方法的作用是:将记录指针移动到记录集中的上一条记录。它以上一条记录作为当前记录。
Note: An error will occur if the Recordset object does not support bookmarks or forward cursor movement.
注意:如果记录集对象不支持书签或不能向前移动指针,那么将产生错误。
Note: If you call this method when the current record is the first record, it generates an error.
注意:当当前记录为记录集中第一条记录时,如果你请求该方法,那么它将产生一个错误。
Syntax
语法 objRecordset.MoveFirstobjRecordset.MoveLastobjRecordset.MoveNextobjRecordset.MovePrevious
相关文章推荐
- ADO MoveFirst, MoveLast, MoveNext, 与 MovePrevious 方法
- ADO MoveFirst, MoveLast, MoveNext, 与 MovePrevious 方法
- ADO MoveFirst, MoveLast, MoveNext, 与 MovePrevious 方法
- cursor 的moveToFirst和moveToNext和moveToPrevious以及moveToLast
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- _RecordsetPtr使用方法
- _RecordsetPtr的Putcollect方法操作数据库没变化
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- _RecordsetPtr使用方法
- _RecordsetPtr使用方法
- _RecordsetPtr使用方法
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- cursor 的moveToFirst和moveToNext和moveToPrevious以及moveToLast
- _RecordsetPtr使用方法
- _RecordsetPtr使用方法
- VC++下使用ADO操作数据库的智能指针_ConnectionPtr、_RecordsetPtr、_CommandPtr的方法
- cursor 的moveToFirst和moveToNext和moveToPrevious以及moveToLast
- _RecordsetPtr使用方法