dbtabname

Description

Return the name of a table based on its number.

Syntax

char *dbtabname(dbproc, tabnum)
 
DBPROCESS     *dbproc;
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.

tabnum

The number of the table of interest. Table numbers start with 1. Use dbtabcount to find out the total number of tables involved in a particular query.

Returns

A pointer to the null-terminated name of the specified table. This pointer will be NULL if the table number is out of range or if the specified table is a server work table. See the dbtabcount reference page for a description of work tables.

Usage

See also

dbcolbrowse, dbcolsource, dbqual, dbtabbrowse, dbtabcount, dbtabsource, dbtsnewlen, dbtsnewval, dbtsput