Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validate date in a save method
Message
 
 
À
11/04/2007 09:57:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01214399
Message ID:
01214405
Vues:
33
>I have as a "Save" button. In the click method of the button I want to be be sure a field is a valid date, i.e. nn/mm/yyyy where nn is a valid month, mm is a valid day and yyyy is a valid year.
>
>The format of the field is KD.
>
>How can I do that?

If you set format as D, then the field would be automatically validated.

Otherwise you may look at the special date class I developed:
Re: Replacing VFP's Invalid Date message Thread #1131737 Message #1131791
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform