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!

Categories

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.