TDBF for Delphi 2009 and Delphi 2010 - fixed version - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

TDBF for Delphi 2009 and Delphi 2010 - fixed version

rcflashrcflash Posts: 2Member
Since [b]TDBF[/b] did not work in [b]Delphi 2009 and Delphi 2010[/b] I have fixed some problematic code.
Here's my fixed version:

Please, let me know if it works for you (my email is inside the ZIP)


  • aabedi25aabedi25 Posts: 1Member
    I've used your code. Thank you.
    But when I want to throw in the database gives the error.
    If may help.
    [code]with dbf do
    TableName:=path + 'myfile.dbf';
    ReadOnly := False;
    for i:=0 to fieldcount-1 do
    if Fields[i].DataType=ftString then

    with dbf do
    dbf.Insert;// [color=Red]in line is error[/color] ...

    Project my.exe raised exception class EDatabaseError with message
    [color=Red]'Cannot modify a read-only dataset'[/color].

Sign In or Register to comment.