ADO EndOfRecordset 이벤트


❮ 완전한 레코드세트 개체 참조

이벤트는 특정 작업이 발생한 후 자동으로 호출될 수 있는 서브루틴입니다.

EndOfRecordset 이벤트는 Recordset의 마지막 레코드 이후의 레코드로 이동하려고 하면 트리거됩니다. 이 이벤트는 레코드 포인터가 Recordset의 끝에 있고 MoveNext 메서드가 호출된 경우에 발생할 수 있습니다.

팁: 이 이벤트를 사용하여 데이터베이스에서 더 많은 레코드를 검색하고 이를 Recordset 끝에 추가한 다음 MoveNext 호출을 반복할 수 있습니다.

참고: 이 메서드가 반환되기 전에 상태 매개변수를 adStatusUnwantedEvent로 설정하여 후속 알림을 방지하세요.

통사론

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 값

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

❮ 완전한 레코드세트 개체 참조