Evento ADO EndOfRecordset
❮ Riferimento completo dell'oggetto Recordset
Un evento è una subroutine che può essere richiamata automaticamente dopo che si è verificata un'operazione specifica.
L'evento EndOfRecordset viene attivato quando si tenta di passare a un record dopo l'ultimo record in un Recordset. Questo evento può verificarsi se il puntatore al record si trova alla fine del Recordset e se viene chiamato il metodo MoveNext.
Suggerimento: puoi utilizzare questo evento per recuperare più record da un database e aggiungerli alla fine del Recordset, quindi ripetere la chiamata MoveNext.
Nota: prima che questo metodo venga restituito, impostare il parametro status su adStatusUnwantedEvent per evitare notifiche successive.
Sintassi
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 Valori
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 |
❮ Riferimento completo dell'oggetto Recordset