long GetRowCount(long QueryID)
Description
This function returns the number of rows currently in QMF for Windows's internal buffer. This may be greater than the number of rows retrieved with FetchNextRow() or FetchNextRows(), because QMF for Windows buffers data received from the database.
This function returns the number of rows retrieved from the database. If you want to retrieve the total number of rows in the result set, you can:
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery() or InitializeStaticQuery(). |
Return Value
The number of rows returned if successful, zero if no rows have been retrieved, or negative one (-1) if unsuccessful. If negative one (-1), you can call GetLastErrorString() or GetLastErrorType() to get additional error information.