function createTable(filename : String): Boolean;

Function createTable() creates a new table. You have to prepare the structure with prepareNewTable and addField.
Another function allows you to create and open the table right away after creation.

function createAndOpenTable(filename : 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;