ADO WillChangeField और FieldChangeComplete Events
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
विलचेंजफ़ील्ड इवेंट
एक या अधिक फ़ील्ड ऑब्जेक्ट के मान बदलने से पहले WillChangeField ईवेंट ट्रिगर हो जाता है।
नोट: इस घटना के वापस आने से पहले, इस घटना के कारण होने वाली कार्रवाई को रद्द करने के लिए स्थिति पैरामीटर को adStatusCancel पर सेट करें।
फील्ड चेंज कम्प्लीट इवेंट
एक या अधिक फ़ील्ड ऑब्जेक्ट के मान बदलने के बाद, FieldChangeComplete ईवेंट ट्रिगर होता है।
नोट: इस घटना के वापस आने से पहले, स्थिति पैरामीटर को adStatusUnwantedEvent पर सेट करें ताकि बाद की सूचनाओं को रोका जा सके।
नोट: WillChangeField ईवेंट और FieldChangeComplete ईवेंट तब हो सकता है जब आप मान गुण सेट करते हैं और फ़ील्ड और मान सरणी पैरामीटर के साथ अद्यतन विधि को कॉल करते हैं।
वाक्य - विन्यास
WillChangeField numfields,fields,status,objRs
FieldChangeComplete numfields,fields,objErr,status,objRs
Parameter | Description |
---|---|
numfields | The number of Field objects in fields |
fields | An array that contains Field objects with changes |
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 |
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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ