w3pop.com :: 网络学院 :: ADO :: ADO Move 方法
The Move method moves the record pointer in a Recordset object.
Move的作用是:在一个记录集对象中移动记录指针。
Note: This method can be used on all Recordset objects.
注意:该方法可以用于所有的记录集对象
objRecordset.Move numrec,start |
| Parameter参数 | Description描述 |
|---|---|
| numrec | Required. Specifies how many records the record pointer will move. 必要参数。指定记录指针将向前/向后移动多少条记录 Example: If this parameter is set to 3, the record pointer moves 3 records forward. Example: If this parameter is set to -3, the record pointer moves 3 records backward |
| start | Optional. Where to start. Can be a bookmark or a BookmarkEnum value 可选参数。指定起始位置。可以是一个书签或是一个BookmarkEnum值 |
| Constant常量 | Value值 | Description描述 |
|---|---|---|
| adBookmarkCurrent | 0 | Starts at the current record 从当前记录开始 |
| adBookmarkFirst | 1 | Starts at the first record 从第一条记录开始 |
| adBookmarkLast | 2 | Starts at the last record 从最后一条记录开始 |
评论 (0)
All