The AsString function will get me the information I need but if you look at
the original code, the routine should run with any kind of data through the
use of DataSize and GetData.
I don't want to have to have any checks in that loop becuase of the
performance hit. That is why I am using DataSize and GetData in the first
place - for the speed.
All I really need to know is why the GetData() method of TField is placing
funny information in my buffer.
Phil.
From: Aaron Scott-Boddendijk <[EMAIL PROTECTED]> AT tawa on 09/07/99 17:16
ZE12
To: Multiple recipients of list delphi <[EMAIL PROTECTED]> AT
tawa@kauripo@CCMAIL
cc: (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: Re: [DUG]: Error copying TDateTime using TField.GetData
> Does anyone know if the TField stores the 8 bytes it takes for a
TDateTime > (basically a double) in an unusual fashion? All the other data
I copy over > using this method comes across fine.
Check the AsString function (in delphi source) for TDateField... I strongly
suspect
you'll find that the database ain't storing in the same form... if there
was a
global
standard for dates with dateline correction included then all the
development suites could provide stock standard libraries and we'd all be
much happier... Alas...
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz