当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO EndOfRecordset 事件

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO EndOfRecordset 事件


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

An event is a subroutine that can be called automatically after a specific operation has occurred.
事件是在具体操作发生之后被自动请求的子程序。

The EndOfRecordset event is triggered when you try to move to a record after the last record in a Recordset. This event can occur if the record pointer is at the end of the Recordset and the MoveNext method is called.
当记录指针试图移动到记录集中最后一条记录之外时,即可触发EndOfRecordset事件。如果记录指针位于记录集的末尾,并且此时你又请求了MoveNext方法,那么此时便激发了EndOfRecordset事件。

Tip: You can use this event to retrieve more records from a database and append them to the end of the Recordset, and then repeat the MoveNext call.
提示:你可以使用该事件从数据库中提取更多的记录,并将它们添加到记录集的末尾,并在此时再次请求MoveNext方法,以再次触发EndOfRecordset事件,以此类推。

Note: Before this method returns, set the status parameter to adStatusUnwantedEvent to prevent subsequent notifications.
注意:在你返回这个方法之前,将status[状态]参数设置为adStatusUnwantedEvent可以阻止接下来一系列的通告提示。

Syntax
语法

EndOfRecordset(moredata,status,objrs)

Parameter参数 Description描述
moredata

A boolean value that if true it allows to append more data to the end of the Recordset
指示一个逻辑值。如果值为True,则允许在记录集的末尾处添加更多的数据

status

An EventStatusEnum value that indicates the status of the execution of the event
指定一个EventStatusEnum值,用于指示事件执行的状态

objrs The name of the Recordset Object that triggered this event
指定激发该事件的记录集对象的名称


EventStatusEnum Values

Constant常量 Value值 Description描述
adStatusOK 1 The operation that caused the event was successful
激发事件操作成功
adStatusErrorsOccurred 2 The operation that caused the event failed
激发事件操作失败
adStatusCantDeny 3 The operation that caused the event cannot be cancelled
不可以取消正处于处理执行中的操作
adStatusCancel 4 The operation that caused the event is cancelled
取消激发事件的操作
adStatusUnwantedEvent 5 Prevents subsequent notifications before the event method has finished executing
在时间的运行方法终止运行之前禁止后续的报告

评论 (0) All

登陆 | 还没注册?