ADO EndOfRecordset Event
❮ Pełne odniesienie do obiektu zestawu rekordów
Zdarzenie to podprogram, który można wywołać automatycznie po wykonaniu określonej operacji.
Zdarzenie EndOfRecordset jest wyzwalane, gdy próbujesz przejść do rekordu po ostatnim rekordzie w Recordset. To zdarzenie może wystąpić, jeśli wskaźnik rekordu znajduje się na końcu Recordset i zostanie wywołana metoda MoveNext.
Porada: Możesz użyć tego zdarzenia, aby pobrać więcej rekordów z bazy danych i dołączyć je na końcu zestawu rekordów, a następnie powtórzyć wywołanie MoveNext.
Uwaga: zanim ta metoda zostanie zwrócona, ustaw parametr status na adStatusUnwantedEvent, aby zapobiec kolejnym powiadomieniom.
Składnia
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 Wartości
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 |
❮ Pełne odniesienie do obiektu zestawu rekordów