حدث ADO EndOfRecordset
استكمال مرجع كائن مجموعة السجلات
الحدث عبارة عن إجراء فرعي يمكن استدعاؤه تلقائيًا بعد حدوث عملية معينة.
يتم تشغيل الحدث EndOfRecordset عند محاولة الانتقال إلى سجل بعد آخر سجل في مجموعة السجلات. يمكن أن يحدث هذا الحدث إذا كان مؤشر السجل في نهاية مجموعة السجلات ويتم استدعاء أسلوب MoveNext.
تلميح: يمكنك استخدام هذا الحدث لاسترداد المزيد من السجلات من قاعدة بيانات وإلحاقها بنهاية مجموعة السجلات ، ثم كرر استدعاء 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 |
استكمال مرجع كائن مجموعة السجلات