Are you going to claim copyright on that phrase or is it in the public domain for reuse ;-)
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Wednesday, 30 June 2010 11:55 a.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] DateTimePicker Glad my observations helped, but I'm not especially familiar with TDateTimePicker. I was simply curious about the behaviour you described so had a quick (2-3 mins, at the most) look at the VCL source for the control, looking for code that changed the internal fDateTime value directly or indirectly and found the behaviours that I then described. Use the source, Luke. The source will be with you. Always. etc etc I then deserialised a TConsciousnessStream as I considered how I'd go about mitigating that behaviour if I were writing code affected by it. J From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Wednesday, 30 June 2010 11:22 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] DateTimePicker It looks like D5 does not have DateOf, but the Trunc function works fine (with a comment of why). Thanks for Jolyon for the description of the oddities of this control - it looks like he has been bitten by this oddity and knows it well! John DateOf() is nothing more than a wrapper for Trunc(TheDate) but I like to use it becuase then you know what its doing :-) BTW TimeOf(TheDate) returns only the time portion of a date/time and is just a wrapper for Frac(TheDate). Once agai I use this so I know what the code is doing. Jeremy
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe