<< Click to Display Table of Contents >> AdoRecordSetEvents:WillChangeRecordSet() |
![]() ![]() ![]() |
Note |
Please note that event handling is not supported in the current version of Xs2Ado |
Purpose
The WillChangeRecordset event is called before a pending operation changes the Recordset.
METHOD WillChangeRecordSet ( lReason, lStatus, oRecordSet ) CLASS AdoRecordSetEvents
lReason An EventReasonEnum value that specifies the reason for this event
lStatus An AdoEventStatusEnum status value
oRecordSet A Recordset object. The Recordset for which this event occurred
When WillChangeRecordset is called, the lStatus parameter is set to adStatusOK if the operation that caused the event was successful. It is set to adStatusCantDeny if this event cannot request cancellation of the pending operation Before WillChangeRecordset returns, set the lStatus parameter to adStatusCancel to request cancellation of the pending operation
AdoRecordSetEvents, AdoEventReasonEnum, AdoEventStatusEnum