CPB Mailing List

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

Re[Solved]: DateTime Picker Problem



Ken,
    According to the error message it seems to me that you are quite wrong
as if I take Time poperty of the DateTime Picker as TTime and use StrToTime
then it gives a runtime error telling me that "10/12/98 2:01:34 PM" is not a
valide time. The same is for the Date property.
    But don't worry the expression becaome valid when I reinstalled BCB3. My
Problem is solved.
Bye
BID
    -----Original Message-----
    From: Ken Moffat <kmoffat@halcyon.com>
    To: cpb-thread@zdtips.com <cpb-thread@zdtips.com>
    Date: Monday, October 12, 1998 5:20 AM
    Subject: 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.

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