CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DateTime Picker Problem



The Time property is a TTime and the Date property is a TDate, so maybe they
need to be caste to a TDateTime, or the Now() TDateTime needs to be cast to
TDate and TTime.
(Guess.)
-----Original Message-----
From: MetalGuy Bidyut <bid@cyberdude.com>
To: BCB Help <cpb-thread@zdtips.com>
Date: Saturday, October 10, 1998 5:37 PM
Subject: DateTime Picker Problem


>Dear BCB Users,
>    I was trying to make a Program that will notify when a particular time
>on a particular Date has crossed. I used two DateTime Picker - one for
>taking the date and the other for the time. Now here is the problem when
the
>date has crossed then
>
>Now() >= TimePicker->Time && Now() >= DatePicker->Date
>
>must be true. But in my program this is always remaining false. Thus it
>never notifies. So I tried to use StrToDateTime.
>
>Now() >= StrToDateTime(TimePicker->Time) && Now() >=
>StrToDateTime(DatePicker->Date)
>
>But even so the expression is always false.
>
>Please get me a way to make it true when it is supposed to be.
>
>Thanx to anyone who helps.
>BYE
>BID
>
>




W Komornicki's Home Page | Main Index | Thread Index