Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loose StrictDateEntry
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00981831
Message ID:
00982030
Vues:
45
>>>Ni Nadya,
>>>
>>>the difference is the Format = "KD". If you remove the "D" you can edit the time.
>>>
>>I figured this already. But without D format you can type anything. I'm now playing with Inputmask. This 99/99/9999 99:99:99 seems to work, though I'm not sure, how to switch between am/pm. But it would make my class to be set('date') dependent.
>
>
>I tried this on the inputmask and it worked fine:
>99/99/9999 99:99:99 AA
>
>The AM disappears once you start typing, but defaults to AM if nothing is entered.
>
>-mike

Mike,

The problem here that this format is set('date') dependent. What if I'm using 01-01-2004 format? Also AA allows to enter any letter, and I need to allow only AM or PM. Moreover, it depends, am I using military time format or not.
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