> All I really need to know is why the GetData() method of TField
> is placing funny information in my buffer.

Your problem is that date and time fields are stored internally in a
somewhat perverse Paradox format. Your must convert from the internal
format into a TDataSet as shown by the TDateTimeField.GetValue code in
DB.pas (line 4356 in the Delphi 4 source). The really annoying thing is
that if you are writing TDataSet taking data from some othe source (eg
Interbase) you have to convert the native data format into the wierd
Paradox internal format so that the TDateTime field can convert it into a
TDateTime. Sigh.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to