Evento ADO EndOfRecordset
❮ Referência Completa do Objeto do Conjunto de Registros
Um evento é uma sub-rotina que pode ser chamada automaticamente após a ocorrência de uma operação específica.
O evento EndOfRecordset é acionado quando você tenta mover para um registro após o último registro em um Recordset. Esse evento pode ocorrer se o ponteiro do registro estiver no final do Recordset e o método MoveNext for chamado.
Dica: Você pode usar esse evento para recuperar mais registros de um banco de dados e anexá-los ao final do Recordset e, em seguida, repetir a chamada MoveNext.
Observação: antes que esse método retorne, defina o parâmetro de status como adStatusUnwantedEvent para evitar notificações subsequentes.
Sintaxe
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 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 |
❮ Referência Completa do Objeto do Conjunto de Registros