DBASEopen

Top  Previous  Next

Opening a DBASE data bank.

All operations for DBASE files, with the exception of the procedures for putting in of these files, require the previous opening of the file. Besides, a trading which must be given by all other operations is generated. For opening a DBASE file only the name and the access mode are necessary. The name must be qualified completely, it is not complemented a file ending like.DBF. If the file should be only read, can contain writeMode 0, but the parametre of 0 must have passed away.

Parametre

name (char *) [IN]

This is the name of the file which should be opened as a DBASE file. No file types, so nobody.DBF, are suspended, the name is used immediately for opening the file. The file must have DBASE format, however, here only low check is carried out.

writeMode (int) [IN]

If the data bank should be changed, one of 0 different values must stand here. The value 0 leads to the fact that the data bank is opened only reading.

Result

(DBbuffer *) [OUT]

If the procedure has run successfully, the trading of the anew open data bank is delivered as a result. In the mistake case the procedure delivers ZERO.

Declaration

#include "dbase.h"

 

DBbuffer * DLLENTRY DBASEopen (

char *name,

int writeMode

);