🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9322

Re: blank values in DateTimePickers

#9322
From: Mark Jacobs
Date: Thu, 15 Jul 2004 16:01
22 lines
2179 bytes
"Kevin Johnson" <kevjson@hotmail.com> wrote in message
news:40f68cfe@newsgroups.borland.com...
| Hay Mark, thanks for the post - bit confused though, not sure exactly how to
| implimnet you code below.  I've just knocked upa quick test.  Dropped two
| TDateTimePickers on the form, added you function and called it, passing the
| value of the first DateTimePicker - doesn't seem to do anything.  Then tried
| calling your code, then assigning a blank value to the DateTimePicker - now
| I get the usual exception about invalid date.  Sorry, can you give me some
| more pointers,

Aha. The code I supplied is to prevent the GPF caused by pulling a blank one
down and then putting it back up again. This is not your problem.

I can see what the sticking point is - how do you define an "unpopulated date"
and get it to appear blank on the date time picker component. Tricky. First,
tell me what a blank date means to your app. Does it mean a date before time
began, or today, or what? We'll take it from there.
-- 
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
markj atty critical dotty co dotty uk
Technical Details
Message-ID: <40f6aa3c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40f67f25$1@newsgroups.borland.com> <40f67ffe$2@newsgroups.borland.com> <40f68cfe@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aad838891ad1623f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Mark Jacobs" <markj atty critical dotty co dotty uk>
From: "Mark Jacobs" <markj atty critical dotty co dotty uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40f67f25$1@newsgroups.borland.com> <40f67ffe$2@newsgroups.borland.com> <40f68cfe@newsgroups.borland.com>
Subject: Re: blank values in DateTimePickers
Date: Thu, 15 Jul 2004 17:01:01 +0100
Lines: 24
Organization: DK Computing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 81.144.157.8
Message-ID: <40f6aa3c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1089907260 81.144.157.8 (15 Jul 2004 09:01:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail