|
AnyDAC
|
Fetches the next rowset from the DBMS.
The number of fetched records.
Call GetNextPacket to fetch the next rowset from a DBMS cursor.
To specify the maximum number of records to return in a rowset, set the FetchOptions.RowsetSize property before calling GetNextPacket. A rowset is appended to those records already stored in the internal data storage.
GetNextPacket returns the number of records fetched. If the return value is less than FetchOptions.RowsetSize, the dataset has already received all available records from the DBMS cursor.
Use GetNextPacket for manual fetching mode, when FetchOptions.Mode = fmManual.
function GetNextPacket: Integer;
TDataSet.Open, TADFetchOptions.Mode, TADFetchOptions.RowsetSize
ADQuery1.FetchOptions.Mode := dmManual; ADQuery1.SQL.Text := 'select * from mytab'; ADQuery1.Open; // here RecordCount = 0 ADQuery1.GetNextPacket; // here RecordCount <= FetchOptions.RowsetSize
|
What do you think about this topic? Send feedback!
|