Board index » delphi » BDE and DBASE III

BDE and DBASE III

Hi

D3 BDE 4.51

I have a problem

I developed a program that read a Paradox Table, create a DB III table from
some records of the Paradox Table. The program works Ok.

But I tried to run my program with the 2001 year (the past Tuesday) and when
I tried to run Dbase III and open the tables, I receive an error  "the table
is not a Dbase table..." (something like these). I had to change the date of
the PC to 2000 because with the 2001 year I have the problem.

Why ?

I download the BDE 5.1 and instaled, but I still have the problem, I have
another question, If I change the version of BDE , I have to recompile my
application?

Thanks in advance

Alejandro

--
Alejandro Castro Perez

COMPUTACION ALFRA SC
Cerro del Fortin 116-101
Col. Campestre Churubusco
04200 Mxico, D.F.
Tel: 55 44 6014 y 55 44 3251
Lada sin Costo: 01 800 849 77 59
www.calfra.com.mx

 

Re:BDE and DBASE III


On Fri, 5 Jan 2001 09:42:55 -0600, "Alejandro  Castro"

Quote
<cal...@mail.internet.com.mx> wrote:
>But I tried to run my program with the 2001 year (the past Tuesday) and when
>I tried to run Dbase III and open the tables, I receive an error  "the table
>is not a Dbase table..." (something like these). I had to change the date of
>the PC to 2000 because with the 2001 year I have the problem.

>Why ?

Because dBase III apparently cannot handle anything beyond 01/01/2001
as the last updated date.  This looks like a belated Y2K bug in dBase
III, not Delphi nor the BDE.  The problem is that it checks that the
second byte of the .DBF file (this is the year of last updated date)
is not bigger than $64.

Quote
>If I change the version of BDE , I have to recompile my application?

No.

HTH,

Jan

Re:BDE and DBASE III


Now I do NOT think that dBIII has a problem. I use still dBIII+, and that works
fine beyond 2001.
I have experienced that Delphi rather make a dBIV table. One that starts with the
byte #04. dBIII expects the first byte to be a #03.
What I do, is crarting the file in dBaseIII+ and then manupilating it in D4. That
wroks fine.
--
+ Jan Pit, Botswana +
Quote
Jan Sprengers wrote:
> On Fri, 5 Jan 2001 09:42:55 -0600, "Alejandro  Castro"
> <cal...@mail.internet.com.mx> wrote:

> >But I tried to run my program with the 2001 year (the past Tuesday) and when
> >I tried to run Dbase III and open the tables, I receive an error  "the table
> >is not a Dbase table..." (something like these). I had to change the date of
> >the PC to 2000 because with the 2001 year I have the problem.

> >Why ?

> Because dBase III apparently cannot handle anything beyond 01/01/2001
> as the last updated date.  This looks like a belated Y2K bug in dBase
> III, not Delphi nor the BDE.  The problem is that it checks that the
> second byte of the .DBF file (this is the year of last updated date)
> is not bigger than $64.

> >If I change the version of BDE , I have to recompile my application?

> No.

> HTH,

> Jan

Re:BDE and DBASE III


Quote
On Sat, 06 Jan 2001 11:18:13 +0200, Jan Pit <jan...@iname.com> wrote:
>Now I do NOT think that dBIII has a problem. I use still dBIII+, and that works
>fine beyond 2001.

You are right that this can equally well be called an incompatibility
between dBase <> BDE than a bug in either of them.  Clipper appears to
act the same as dBase III.

Quote
>I have experienced that Delphi rather make a dBIV table. One that starts with the
>byte #04. dBIII expects the first byte to be a #03.

That should only happen when you change something about the table,
like adding an index.  This is not related to this problem.

Quote
>What I do, is crarting the file in dBaseIII+ and then manupilating it in D4. That
>wroks fine.

No, it doesn't.  dBase will barf again when you update the table
through the BDE because the second byte of the .DBF file will again be
$65 instead of $01.

Jan

Other Threads