Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime field
Message
From
21/01/1999 18:28:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/01/1999 11:18:40
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00178483
Message ID:
00178785
Views:
33
>Hiya John ----
>
>You could, using the Valid event, test for "12:00:00 AM" with the following:
>(Assumes tDateTime is the ControlSource)
>
>IF TTOC(tDateTime,2) = "12:00:00 AM"
>   WAIT WIND "Hey!  No time entered!"
>   RETURN .F.
>ENDIF
>RETURN .T.
That's cute :). Just to prevent any settings induce possible erroneous behavior, I think this minor correction would keep us away from Set Hours and Set Seconds:
IF DtoT(Ttod(tDateTime)) = tDateTime
   WAIT WIND "Hey!  No time entered! (or is it really exactly midnight?)"
   RETURN .F.
ENDIF
RETURN .T.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform