Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Validation Problem
Message
De
14/06/1999 15:23:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229477
Message ID:
00229650
Vues:
17
>Greetings!
>
>I read some posts about a date validation problem, mainly, the date is validated before the valid event in the textbox. Well, I'm also grappling with this problem. I've set set up a bit of code to autocomplete the date for the user, ie: they enter 02/31/1999 it would change it to 02/28/1999. I've got this code set up in the valid() event, but it never fires if they enter an invalid date....what to do?? Anyone have any solutions/suggestions?

A little off of the subject... the other suggestions are all I would know how to do, but I have to ask: Why would you want to do this? How do you know the user meant to put 02/28 instead of 03/03? A better solution, IMHO, is to add functionality to your date textboxes in the form of shortcut keys that allow the user to do things like skip a month, day or year, or go to the last day of the month.

Just a little unsolicited insight...
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform