dbdatlen

Description

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

Syntax

DBINT dbdatlen(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 length, in bytes, of the data that would be returned for the particular column. If the data has a null value, dbdatlen returns 0. If the column number is not in range, dbdatlen returns -1.

Usage

See also

dbcollen, dbcolname, dbcoltype, dbdata, dbnumcols