dbcoltype

Description

Return the datatype for a regular result column.

Syntax

int dbcoltype(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 token value for the datatype for a particular column.

In a few cases, the token value returned by this routine may not correspond exactly with the column’s server datatype:

If the column number is not in range, dbcoltype returns -1.

Usage

See also

dbcollen, dbcolname, dbdata, dbdatlen, dbnumcols, dbprtype, dbvarylen, Types