当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Move 方法

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO Move 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 401 ::
收藏到网摘: n/a

The Move method moves the record pointer in a Recordset object.
Move的作用是:在一个记录集对象中移动记录指针。

Note: This method can be used on all Recordset objects.
注意:该方法可以用于所有的记录集对象

Syntax
语法

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.
案例:如果该参数设置为3,那么记录指针将向前移动3条记录

Example: If this parameter is set to -3, the record pointer moves 3 records backward
案例:如果参数设置为-3,那么记录指针将向后移动3条记录

start Optional. Where to start. Can be a bookmark or a BookmarkEnum value
可选参数。指定起始位置。可以是一个书签或是一个BookmarkEnum值


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

登陆 | 还没注册?