Evento EndOfRecordset de ADO
❮ Referencia completa de objetos de conjunto de registros
Un evento es una subrutina que se puede llamar automáticamente después de que se haya producido una operación específica.
El evento EndOfRecordset se activa cuando intenta pasar a un registro después del último registro en un Recordset. Este evento puede ocurrir si el puntero de registro está al final del conjunto de registros y se llama al método MoveNext.
Sugerencia: puede usar este evento para recuperar más registros de una base de datos y agregarlos al final del conjunto de registros y luego repetir la llamada MoveNext.
Nota: antes de que este método regrese, establezca el parámetro de estado en adStatusUnwantedEvent para evitar notificaciones posteriores.
Sintaxis
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 |
Valores de 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 |
❮ Referencia completa de objetos de conjunto de registros