网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ADO :: ADO Move 方法

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ADO Move 方法


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1313 :: ::

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