DBISAVAIL

Description

Determine whether a DBPROCESS is available for general use.

Syntax

DBBOOL DBISAVAIL(dbproc)
 
DBPROCESS      *dbproc;

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.

Returns

TRUE” if the DBPROCESS is available for general use, otherwise “FALSE”.

Usage

This routine indicates whether the specified DBPROCESS is available for general use. When a DBPROCESS is first opened, it is marked as being available, until some use is made of it. Many DB-Library routines will automatically set the DBPROCESS to “not available,” but only dbsetavail will reset it to “available.” This facility is useful when several parts of a program are attempting to share a single DBPROCESS.

See also

dbsetavail