एडीओ विलमूव एंड मूवकंप्लीट इवेंट्स
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
विलमूव इवेंट
रिकॉर्डसेट में किसी ऑपरेशन की वर्तमान स्थिति को बदलने से पहले WillMove ईवेंट ट्रिगर हो जाता है।
नोट: इस ईवेंट के वापस आने से पहले, स्थिति पैरामीटर को adStatusCancel पर सेट करें, ताकि इस ईवेंट के कारण होने वाले ऑपरेशन को रद्द किया जा सके या बाद की सूचनाओं को रोकने के लिए इसे adStatusUnwantedEvent पर सेट किया जा सके।
मूवकंप्लीट इवेंट
रिकॉर्डसेट में वर्तमान स्थिति बदलने के बाद MoveComplete ईवेंट चालू हो जाता है।
नोट: इस घटना के वापस आने से पहले, स्थिति पैरामीटर को adStatusUnwantedEvent पर सेट करें ताकि बाद की सूचनाओं को रोका जा सके।
नोट: निम्न में से किसी एक रिकॉर्डसेट विधि को कॉल करते समय WillMove ईवेंट या MoveComplete ईवेंट हो सकता है: Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, AddNew और Requery। ये घटनाएँ निम्न गुणों के कारण भी हो सकती हैं: फ़िल्टर, अनुक्रमणिका, बुकमार्क, निरपेक्ष पृष्ठ, और निरपेक्ष स्थिति।
वाक्य - विन्यास
WillMove reason,status,objRs
MoveComplete 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 |
adRsnMove | 10 | An operation moved the record pointer within the Recordset |
adRsnMoveFirst | 12 | An operation moved the record pointer to the first record in the Recordset |
adRsnMoveNext | 13 | An operation moved the record pointer to the next record in the Recordset |
adRsnMovePrevious | 14 | An operation moved the record pointer to the previous record in the Recordset |
adRsnMoveLast | 15 | An operation moved the record pointer to the last record in 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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ