Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Validation Problem
Message
 
 
To
14/06/1999 15:23:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00229477
Message ID:
00229720
Views:
21
>>Greetings!
>>
>>I read some posts about a date validation problem, mainly, the date is validated before the valid event in the textbox. Well, I'm also grappling with this problem. I've set set up a bit of code to autocomplete the date for the user, ie: they enter 02/31/1999 it would change it to 02/28/1999. I've got this code set up in the valid() event, but it never fires if they enter an invalid date....what to do?? Anyone have any solutions/suggestions?
>
>A little off of the subject... the other suggestions are all I would know how to do, but I have to ask: Why would you want to do this? How do you know the user meant to put 02/28 instead of 03/03? A better solution, IMHO, is to add functionality to your date textboxes in the form of shortcut keys that allow the user to do things like skip a month, day or year, or go to the last day of the month.
>
>Just a little unsolicited insight...

Thanks:) I understand what you're saying, but this is going to be used for data entry, with those fast flying fingers they don't want to be bothered with doing anything except buzzing around the keypad...in view of this, most that I've talked to find it fast to just put in 31 and have the computer correct them than have to do extra key strokes, especially when the date needs to be End of Month, but they can't remember how many days are in the current month...it's just something that'd be nice to have in there I guess...that's all:)

Thanks for your suggestion though.
Previous
Reply
Map
View

Click here to load this message in the networking platform