If I am understanding what you are trying to do correctly, by "earliest date" you mean you are trying to get the earliest date possible that Delphi can store. Is this correct?
If so, why not just set your TDate/TDateTime var to zero. This will set your datetime var to the earliest value that can be stored, namely "30/12/1899 12:00 am"
HTH,
Chris
Chris Veale wrote:
Hi.
I am trying to do a strtodate('01/01/1900');
This is used simply to determine an order of a sequence of dates so I do
this to set the earliest date.
Now on almost all computers this is no problem, but on ONE computer this
dies with an "unknown exception" and I can capture the following
information...
There is also a problem where the computers system date format was
mm/dd/yyyy and this caused another problem, but I think ive fixed that one
with a formatdate call, but this one is really baffling me.
The OS is the same as I am running so I cant see an issue there, and the
system shortdateformat is now correct also.
Can anyone think what this could be? I know datetime is from 13/12/1899
could this be a problem? should I change it to strtodate('01/01/1970');
cheers
Chris Veale
=================================================================
date/time : 2003-01-24 16:51
computer name : SERVER
operating system : Windows 2000
free disk space : 14,34 GB
executable : kiwiload.exe
exec. date/time : 2002-12-20 12:01
exception class : Exception
exception message : Unknown Exception.
thread $2A0:
$004F115F kiwiload.exe madExcept 2067 CreateBugReport
$004EDE87 kiwiload.exe madExcept 1072 SendShellMail
$004EF1F8 kiwiload.exe madExcept 1474 TExceptionBox.DialogWndMethod
$004F02B1 kiwiload.exe madExcept 1695 ShowException
$004F0499 kiwiload.exe madExcept 1747 ReceiveHandleException
$004EB75D kiwiload.exe madTools 390 MsgHandlerWindowProc
$004F05FD kiwiload.exe madExcept 1782 HandleExceptionThread
main thread ($454):
$77E1484C user32.dll
$004F0719 kiwiload.exe madExcept 1829 HandleException
$004F1635 kiwiload.exe madExcept 2129 InterceptAHandleExcept
$00521D84 kiwiload.exe main 2291 validatebudflow
$00522B39 kiwiload.exe main 2868 process_bud_flow
$005282EC kiwiload.exe main 4535 TForm1.Button2Click
$0052A732 kiwiload.exe KiwiLoad 22 KiwiLoad
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03
______________________________________________________
The contents of this e-mail are privileged and/or confidential to the
named recipient and are not to be used by any other person and/or
organisation. If you have received this e-mail in error, please notify the sender and delete all material pertaining to this e-mail.
______________________________________________________
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/