dbRequery()
Rereads the data of the record set from the data source.
Synopsis
int dbRequery(dbRecordset recordset);
Parameters
Parameter | Meaning |
---|---|
recordset | Record set reference |
Return Value
The return value is an error code, 0 indicates successful execution of the operation. With other values detailed error information can be retrieved using dbGetError().
Errors
In the event of the transfer of an invalid record set reference variable or if changes still have to be made to the record set, an error is returned.
Description
To obtain the current data of a record set if it has already been opened and other users (could) have modified the data dbRequery() is called. The call is equivalent to the call of dbCloseRecordset() and then dbOpenRecordset(). If changes to the current data record are open or if a new, empty data record has been created, an error is returned.
Example
see dbAddNew()
Assignment
ADO and Qt, Database functions
Availability
CTRL