Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I make the user enter the complete year in a date fi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00173130
Message ID:
00174014
Vues:
73
>Well it looks like that is my answer. I'm well on my way to creating a class based off a txtbox. I was checking the in the valid event, then if it passed the length and being a valid date (now I've got to days against months and months between 1 and 12). Come to think of it, this is turning into a real pain in the !@$. What happens when they enter 02-29-2000 and I don't check for leap year! Ohhhh well, maybe I'll be working someplace else by then.
>
>Thanks for all the help and ideas.
>
>Kirk

If you have a character string in date format "02/29/2001" you can validate as a date by using DTOC and EMPTY.
IF EMPTY(DTOC("02/29/2001"))
*bad date
ENDIF
-TomC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform