Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfpcalendar
Message
From
23/09/2002 12:16:56
 
 
To
23/09/2002 11:57:24
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00699655
Message ID:
00703422
Views:
20
There are probably several ways to handle this scenario depending on how you want the feedback to the user to look like. In the textbox part of the control the keypress event is the key to controlling what happens in the control. You could create maxdate and mindate properties in the control then test for these in the keypress event. You can also create a valid event for a final check when exiting the control ( if they type the date in or select it with the dropdown ).

Controling this in the dropdown calendar part may be abit more complicated depending on how you want to accomplish it. Again, mindate and maxdate properties and checking in the keypress event of the control textbox in the calendar form for the range would handle it or testing when the date is selected and notifying the user. If you have the time ( and courage cause I'n no guru :-) ) to look into my code, I think you will find it pretty flexible in terms of what you can do so you can tailor it to your own needs.

Bill

>thanks Bill I'll try your suggestions. Right now I'm just checking the control source and resetting the ddate if the control.source is not >date(). But It would be nice not to allow a date >
>John
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform