Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date validation
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01370164
Message ID:
01370261
Views:
29
SET NOTIFY OFF will disable the message. You can then do something like:
IF CTOD(DTOC(TheDate)) = TheDate
  * It's valid
ENDIF
>What is a simple way to add a bit of code to form1.text1.valid so that the text entered as datetype DATE is validated so that the user gets more than "invalid data"? The situation we encounted was the following. User enters 02/30/2009 and does not realize this is an invalid date. He thinks the app is "locked up" because it won't let him leave the field. How can I give him a good MESSAGEBOX about the date being wrong or just blank the date valid he entered so at least he can select the form button that allows him to clsoe the app?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform