Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime field
Message
De
21/01/1999 18:28:10
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
21/01/1999 11:18:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00178483
Message ID:
00178785
Vues:
34
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform