Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loose StrictDateEntry
Message
From
31/01/2005 09:50:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
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:
00982227
Views:
42
>>>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.
>>
>>You're probably using the 24-hour format hh:mm; the military time is hhmm (without the colon).
>>
>>I sometimes wish AM/PM was never invented... it's so ridiculously illogical.
>
>Thanks for clarifying. We are using full notation here with AM/PM. And it looks like this little big or feature of VFP would not allow me to build this custom class I promised my colleagues. It works for date fields, but doesn't work for datetime. What a pity! :(

I've seen such a custom class on one of my previous jobs - and it had the time part chopped into three fields - hours, minutes, am/pm, which were handled separately and the datetime value was composed from them programmatically. The hour and minute part were spinners, and for AM/PM I don't remember what was there, but I think there was a "@M AM/PM" inputmask and a fake spinner to switch by mouse. Whoever did it probably took all day, but it was then heavily used in reporting, to enter time intervals. People just wanted to know the sales per shift, and in restaurants, shifts sometimes ended at 02:00.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform