ADO Event (2)---endofrecordset (recordsetevent) method

Source: Internet
Author: User
ADO EndOfRecordset (RecordsetEvent) method


If you attempt to move to a row that exceeds the end of the Recordset, the EndOfRecordset method is invoked.

Grammar

EndOfRecordset Fmoredata, adstatus, precordset

Parameters

Fmoredata Variant_bool, it is possible to append new records to precordset during the processing of this event. Add the data before EndOfRecordset returns, and then set the argument to True to indicate a new end of the Recordset.

Adstatus EventStatusEnum state value.

When EndOfRecordset is invoked, the parameter is set to adStatusOK if the operation that raised the event succeeds. Set to adStatusCantDeny if the method cannot request the cancellation of the action that raised the event.

Setting this parameter to adStatusUnwantedEvent can avoid subsequent notifications before EndOfRecordset returns.

Precordset the Recordset object that occurs for the recordset that the event is directed to.

Description

If the Recordset.movenext operation fails, the EndOfRecordset event may occur.

The handler for the event is invoked when the user may have moved past the end of the precordset as a result of calling MoveNext. With this method, the user can retrieve more records from the database and append them to the end of Precordset, in which case the user will set the Fmoredata to VARIANT_TRUE and return from EndOfRecordset. After this, the user can call MoveNext again to access the newly retrieved record.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.