function prepareNewTable(fileType : Integer): Boolean;

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).

function prepareNewTableX(fileType : Integer; memoSize : Integer; driver : String): Boolean;


// if dbf.prepareNewTableX(1, 512, nil) then
if dbf.prepareNewTable(0) then
begin
    dbf.addField('ID', 'N', 10);
    dbf.addField('NAME', 'C', 20);
    dbf.addField('BIRTH', 'D', 8);
    dbf.addFieldX('WEIGHT', 'N', 10, 2);

    // if dbf.createAndOpenTable('testfile.dbf') then
    if dbf.createTable('testfile.dbf') then
        writeln('OK')
    else
        writeln('Error');
end;