db_nr

Description

Database number

Old Name

#define _dbnr db_nr

Syntax

int db_nr;

Remarks

The db_nr variable identifies the active database. This the database to be used in database access calls. db_nr is returned when the db_open() or open_database() function is called. If the program is going to open more than one database, save this variable and use it to move between the databases. The variable's initial value is 0, corresponding to the SYSTEM database which is always open.

If you are opening many databases you may find it easier to use the dp4dbapi.h functions instead of the traditional DP4 C API functions.