Howdy, Stranger!

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

Categories

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:
http://depositfiles.com/files/hgv1ng00q

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

Comments

  • aabedi25aabedi25 Posts: 1Member
    Greetings
    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
    begin
    TableName:=path + 'myfile.dbf';
    Open;
    ReadOnly := False;
    for i:=0 to fieldcount-1 do
    if Fields[i].DataType=ftString then
    TStringField(Fields[i]).Transliterate:=False;
    end;//with

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

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

Sign In or Register to comment.