DBASEcreateDatabase

Top  Previous  Next

A new DBASE data bank define.

To generate a new DBASE data bank it does not manage on opening this. Rather this data bank with all fields and their description must be put on. DBASEcreateDatabase begins this description. Then a field is added with DBASEinsertField after the other of the data bank description and in the end this data bank is finished with DBASEendCreateDatabase. An once invested data bank cannot be changed in the structure with the procedures available here any more. DBASEcreateDatabase gets the full name of the new data bank as a parametre and delivers a Filehandle with which the following procedures put on the data bank. A data bank anew generated about DBASEcreateDatabase is not opened yet. It must be opened after the call by DBASEendCreateDatabase with DBASEopen, before it can be filled with data.

Parametre

name (char *) [IN]

The full name of the new data bank. The name is not changed in the procedure, it becomes also no ending.DBF angehangen.

Result

(FILE *) [OUT]

A normal Dateihandle, with the DBASEinsertField and DBASEendCreateDatabase the data bank put on.

Declaration

#include "dbase.h"

 

FILE * DLLENTRY DBASEcreateDatabase (

char * name

);