short CompleteQuery(long QueryID)
Description
This function fetches all rows of a result set and stores them internally in QMF for Windows. If there is a cursor open for the query, the cursor is closed, freeing the database for other users. You use FetchNextRow() or FetchNextRows() to retrieve the rows. Call Close() when you are done with this query.
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery(). |
Return Value
The return value will be zero if successful or non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.