dbtabsource

Description

Return the name and number of the table from which a particular result column was derived.

Syntax

char *dbtabsource(dbproc, colnum, tabnum)
 
DBPROCESS       *dbproc;
int                          colnum;
int                         *tabnum;

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.

colnum

The number of the result column of interest. Column numbers start at 1.

tabnum

A pointer to an integer, which will be filled in with the table’s number. Many DB-Library routines that deal with browse mode accept either a table name or a table number. If dbtabsource returns NULL (see the “Returns” section below), *tabnum will be set to -1.

Returns

A pointer to the name of the table from which this result column was derived. A NULL return value can mean a few different things:

Usage

See also

dbcolbrowse, dbcolsource, dbqual, dbtabbrowse, dbtabcount, dbtabname, dbtsnewlen, dbtsnewval