Událost ADO EndOfRecordset


❮ Dokončete referenční objekt sady záznamů

Událost je podprogram, který lze volat automaticky po provedení určité operace.

Událost EndOfRecordset se spustí, když se pokusíte přesunout na záznam po posledním záznamu v sadě záznamů. K této události může dojít, pokud je ukazatel záznamu na konci sady záznamů a je volána metoda MoveNext.

Tip: Tuto událost můžete použít k načtení dalších záznamů z databáze a jejich připojení na konec sady záznamů a poté opakování volání MoveNext.

Poznámka: Než se tato metoda vrátí, nastavte parametr status na adStatusUnwantedEvent, abyste zabránili následným upozorněním.

Syntax

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

Hodnoty 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

❮ Dokončete referenční objekt sady záznamů