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, string driver);


// if (dbf.prepareNewTable(1, 512, nil))
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")) 
        Console.WriteLine("OK");
    else
        Console.WriteLine("Error");
}