dbdata

Description

Return a pointer to the data in a regular result column.

Syntax

BYTE *dbdata(dbproc, column)
 
DBPROCESS    *dbproc;
int                        column;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

column

The number of the column of interest. The first column is number 1.

Returns

A BYTE pointer to the data for the particular column of interest. Be sure to cast this pointer into the proper type. A NULL BYTE pointer is returned if there is no such column or if the data has a null value. To make sure that the data is really a null value, you should always check for a return of 0 from dbdatlen.

Usage

See also

dbbind, dbcollen, dbcolname, dbcoltype, dbdatlen, dbnumcols