Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loose StrictDateEntry
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00981831
Message ID:
00982030
Views:
50
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform