It's good Ricardo Passians, October 4, 2004
I like very much your class, but I noticed some thing, in some form I use your datepicker class. If the date textbox has a NULL value and I try to open the calendar by clicking on the down arrow button. It shows me an error: 'Invalid value' or something like that. Can you fix the class so that it handles null values and empty dates correctly? On the other hand, keep on with the good work! Luis Luis Guerra, November 19, 2004
If the ControlSource is set to read only in the form Refresh, I can still change the date value. I also tried disabling the control without success. I also set the custom property lupdowndisable without any luck. This is a simple and easy to use control, but I can't use it if I'm unable to change the state of the control. UPDATE: I added a new property "lEnableButton" to dpk. If in the dropdown method, lEnableButton evaluates to .F., the calendar won't drop. This seems to fix my ReadOnly problem. Great calendar control! John Davis, November 22, 2004
Update: New methods Enable_Assign and ReadOnly_Assign were added. I hope this part to work now. Also fixed .NULL. state case. NullDisplay is now set to "(undefined)". Dorin Vasilescu, November 24, 2004
Enable_Assign and ReadOnly_Assign work great. Thanks! John Davis, November 29, 2004
Thank you for your contribution. However, the datepicker cannot work in Pageframe, which mainly cannot locate cbButton on init event... Aaron K. Y. Chu, January 7, 2005
I use it in Pageframe. If you have code in Init(), a Dodefault() is needed to run default code for button creation. Can you send me a sample, please? Dorin Vasilescu, January 7, 2005
Thank you very much! After I change from init to Load event for SET CLASSLIB... it works perfectly... Thanks again Aaron K. Y. Chu, January 14, 2005
Great code William Silupu, February 7, 2005
Thanks for a great class! I found that with .datetype=2 the up and down arrows were changing the wrong parameter. Chaim Hochman, May 27, 2005
I searched and searched before I found this link from an old thread by Dorin Vasilescu, pointing to this download. I found another I tried, vfpCalendar. I spent 2 days mucking with it, couldn't get it to stop closing my app when the calendar closed. This class works perfect and was very simple to use. Thank you, Thank you! Chuck Williams, December 28, 2007
If the date textbox has a NULL value and I try to open the calendar by clicking on the down arrow button. It shows me an error: 'Invalid value' or something like that. Can you fix the class so that it handles null values and empty dates correctly. solution to the above query. change the .value to {} from =date() and you are done. also adding the below code in the calender_form.init event will show the current date instead of some date in 2004 IF NOT EMPTY(.textboxRef.value) AND NOT ISNULL(.textboxRef.value) ELSE this.oleMonthView.Year = YEAR(DATE()) this.oleMonthView.month = MONTH(DATE()) this.oleMonthView.day = DAY(DATE()) ENDIF i don't know whether this post is open or not because the above query was posted somewhere in 2004 and its 2013, but i came across this library just couple of days back and this is what helped me a lot. thought i should post it for users who will or have used it. Deepak Bhanushali, February 25, 2013