एडीओ EndOfRecordset घटना
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
एक घटना एक सबरूटीन है जिसे एक विशिष्ट ऑपरेशन होने के बाद स्वचालित रूप से बुलाया जा सकता है।
जब आप किसी रिकॉर्डसेट में अंतिम रिकॉर्ड के बाद किसी रिकॉर्ड पर ले जाने का प्रयास करते हैं तो EndOfRecordset ईवेंट ट्रिगर हो जाता है। यह घटना तब हो सकती है जब रिकॉर्ड पॉइंटर रिकॉर्डसेट के अंत में होता है और मूवनेक्स्ट विधि कहा जाता है।
युक्ति: आप इस ईवेंट का उपयोग डेटाबेस से अधिक रिकॉर्ड प्राप्त करने और उन्हें रिकॉर्डसेट के अंत में जोड़ने के लिए कर सकते हैं, और फिर MoveNext कॉल को दोहरा सकते हैं।
नोट: इस विधि के वापस आने से पहले, स्थिति पैरामीटर को adStatusUnwantedEvent पर सेट करें ताकि बाद की सूचनाओं को रोका जा सके।
वाक्य - विन्यास
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 |
status | An EventStatusEnum value that indicates the status of the execution of the event |
objrs | The name of the Recordset Object that triggered this event |
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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ