ADO WillChangeRecordset और RecordsetChangeComplete Events
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
WillChangeRecordset घटना
किसी ऑपरेशन के रिकॉर्डसेट को बदलने से पहले WillChangeRecordset ईवेंट ट्रिगर हो जाता है।
ध्यान दें: इस घटना के वापस आने से पहले, स्थिति पैरामीटर को adStatusCancel पर सेट करें ताकि इस घटना के कारण होने वाली कार्रवाई को रद्द किया जा सके या बाद की सूचनाओं को रोकने के लिए इसे adStatusUnwantedEvent पर सेट किया जा सके।
रिकॉर्डसेटचेंजकंप्लीट इवेंट
रिकॉर्डसेट चेंज होने के बाद RecordsetChangeComplete इवेंट चालू हो जाता है।
नोट: इस घटना के वापस आने से पहले, स्थिति पैरामीटर को adStatusUnwantedEvent पर सेट करें ताकि बाद की सूचनाओं को रोका जा सके।
नोट: WillChangeRecordset और RecordsetChangeComplete घटना तब हो सकती है जब किसी रिकॉर्डसेट ऑब्जेक्ट की रिक्वायरी विधि या ओपन विधि को कॉल किया जाता है।
वाक्य - विन्यास
WillChangeRecord reason,status,objRs
RecordsetChangeComplete reason,objErr,status,objRs
Parameter | Description |
---|---|
reason | An EventReasonEnum value that specifies the reason for this event |
status | An EventStatusEnum value that indicates the status of the execution of the event |
objErr | The name of an Error object that describes the error if status is set to adStatusErrorsOccurred, otherwise it is not set |
objRs | The name of the Recordset object that triggered this event |
EventReasonEnum मान
Constant | Value | Description |
---|---|---|
adRsnRequery | 7 | An operation requeried the Recordset |
adRsnResynch | 8 | An operation resynchronized the Recordset with the database |
adRsnClose | 9 | An operation closed the Recordset |
EventStatusEnum मान
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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ