RAD Studio VCL Reference
TCustomADODataSet.OnFetchComplete Event

Occurs after records have been retrieved into the recordset.

property OnFetchComplete: TRecordsetEvent;
__property TRecordsetEvent OnFetchComplete;

Write an OnFetchComplete event handler to take specific action after all of the rows from an asynchronous data retrieval operation have been returned to the recordset. Calling the dataset component's Open method or setting its Active property to true will lead to this event occurring. 

DataSet is the ADO dataset component that triggered the OnFetchComplete event. This dataset component also contains the recordset in question. 

Error is an ADO Error object. See the Microsoft Data Access SDK for more information on using ADO Error objects. The Error parameter is only set if an error occurred during execution of the operation that triggered the event. In this case, the EventStatus parameter will contain the value esErrorsOccured. 

The EventStatus value (ADO EventStatusEnum) indicates the success or failure of the execution of the operation that triggered the event. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!