Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Text Boxes
Message
De
30/11/1999 12:02:12
 
 
À
29/11/1999 21:49:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00293408
Message ID:
00296924
Vues:
24
>>>>How can I use the Valid Event of a Text Box to make sure a Valid date was typed in?
>>>In the init of the textbox put.
>>>this.value = {//}
>>
>>Oh, duh. Thanks, Evan, this one goes into my bag of tricks -- I was thinking down the lines of CTOD, as Mike (I think) posted....
>
>Garrett,
>
>It's even easier. In the Control.Value in the designer, put {} as the value or in the Init put This.Value= {}. Better yet, subclass the textbox and create a date box. In the KeyPress you can add code to make it work like the datebox in Quicken.

You don't really need to add code to make it work like Quicken. If you highlight the field (all selected), the + and - keys will increment/decrement the date respectively. Been this way since VFP5, at least.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform