dbGetRecord()

Reads the records from a row.

Synopsis

int dbGetRecord(dbRecordset recordset, dyn_anytype &rowContent);

Parameters

Parameter Meaning
recordset Record set reference.
rowContent Contents of the row of the record set.

Return Value

The return value is an error code; 0 indicates the operation has been performed successfully. For other values dbGetError() can be used to obtain detailed error information.

Errors

An error is returned if an invalid record set reference variable is passed, or if changes to the record set are still waiting to be made.

Description

Reads the records from a row. NULL values in the database (value not known) are returned as an empty string. Unknown data types are returned as string "N/A" ("not available").

Example

See dbBulkCommand().

Assignment

ADO and Qt, Database functions

Availability

CTRL