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:
01370240
Views:
25
>No problem. I just took the easy way out and used the MS Date ActiveX Control. I like it.

Now after you found the most suitable solution I still want to answer your question about supressing "invalid date" message.
This is one of the ways:
*TextBox.GotFocus
ON readerror _Screen.ActiveForm.ActiveControl.Valid()

*TextBox.LostFocus
ON readerror

*TextBox.Valid
IF this.text#DTOC(CTOD(this.text))
	WAIT WINDOW TIMEOUT 2.0 ;
		"The date you entered: "+ this.text+ ", it is not a valid date. Please look at it more closely."
ENDIF
this.value=CTOD(this.text)
Good Luck
Previous
Reply
Map
View

Click here to load this message in the networking platform