ADO EndOfRecordset Olayı
❮ Kayıt Kümesi Nesne Referansını Tamamlayın
Olay, belirli bir işlem gerçekleştikten sonra otomatik olarak çağrılabilen bir alt programdır.
EndOfRecordset olayı, Recordset'teki son kayıttan sonraki bir kayda geçmeye çalıştığınızda tetiklenir. Bu olay, kayıt işaretçisi Kayıt Kümesi'nin sonundaysa ve MoveNext yöntemi çağrılırsa meydana gelebilir.
İpucu: Bir veritabanından daha fazla kayıt almak ve bunları Kayıt Kümesinin sonuna eklemek için bu olayı kullanabilir ve ardından MoveNext çağrısını yineleyebilirsiniz.
Not: Bu yöntem geri dönmeden önce, sonraki bildirimleri önlemek için durum parametresini adStatusUnwantedEvent olarak ayarlayın.
Sözdizimi
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 Değerleri
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 |
❮ Kayıt Kümesi Nesne Referansını Tamamlayın