dbcollen

Description

Return the maximum length of the data in a regular result column.

Syntax

DBINT dbcollen(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

The maximum length, in bytes, of the data for the particular column. If the column number is not in range, dbcollen returns -1.

Usage

See also

dbcolname, dbcoltype, dbdata, dbdatlen, dbnumcols