Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I make the user enter the complete year in a date fi
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173130
Message ID:
00174014
Views:
72
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform