ADOEndOfRecordsetイベント_
❮完全なレコードセットオブジェクトリファレンス
イベントは、特定の操作が発生した後に自動的に呼び出すことができるサブルーチンです。
EndOfRecordsetイベントは、レコードセットの最後のレコードの後のレコードに移動しようとしたときにトリガーされます。このイベントは、レコードポインターがレコードセットの最後にあり、MoveNextメソッドが呼び出された場合に発生する可能性があります。
ヒント:このイベントを使用して、データベースからさらにレコードを取得し、それらをレコードセットの最後に追加してから、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 |
❮完全なレコードセットオブジェクトリファレンス