Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date validation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01370164
Message ID:
01370240
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform