Событие EndOfRecordset ADO
❮ Полная ссылка на объект набора записей
Событие — это подпрограмма, которая может быть вызвана автоматически после выполнения определенной операции.
Событие 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 |
❮ Полная ссылка на объект набора записей