Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enforcing valid date into textbox
Message
 
À
03/03/2007 11:32:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01200381
Message ID:
01200702
Vues:
24
>>How do I enforce a valid date on a textbox. The textbox is defined as char at the moment and in the init= thisform.textbox1.value=DATE() and
>>thisform.textbox1.Format='D' . However, I can enter bogus dates.
>
>Simply make it bound to some date value. If u need character representation
>of it, you can keep it parallely stored in some property.
>Otherwise you hv to write complex validation proc for something that is already there for you.
>
>2c
seems when I enter a wrong date like 09/55/2007, I am not allowed to correct it and it causes the app to hang.
ADDED: Actually, the obscure invalid date message message does appear only if the status bar is visible and barely noticed it only when it was.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform