BOOL prepareNewTable(int fileType);

Function prepareNewTable() prepares internal structures for creating a new table.
The simple version of this function accepts a file type, and the extended version allows you to define size of memo fields and provide a name of driver (for dbaseLevel7 only).

BOOL prepareNewTable(int fileType, int memoSize, char* driver);

// if (dbf->prepareNewTable(5, 512, "dBase7driver"))
if (dbf->prepareNewTable(0))
    dbf->addField("ID", 'N', 10);
    dbf->addField("NAME", 'C', 20);
    dbf->addField("BIRTH", 'D', 8);
    dbf->addField("WEIGHT", 'N', 10, 2);

    // if (dbf->createAndOpenTable("testfile.dbf")) 
    if (dbf->createTable("testfile.dbf"))