Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MonthView and GetDayBold error -- again
Message
From
20/08/2001 16:38:50
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00546030
Message ID:
00546426
Views:
28
>I don't see the error. What exactly are you doing with the MonthView control to make it happen? Are you using Date type variables or DateTime type values? You can set the value with either a Date or DateTime type value but it always returns a DateTime type value.
>
>
>thisform.oMonthView.Object.Value = DATE()
>
>This works OK.
>
>WAIT WINDOW TYPE("thisform.oMonthView.Object.Value") + " " + TRANSFORM(thisform.oMonthView.Object.Value)
>
>This always returns a datetime type value.

I'm not setting the date in the control at all. I use the form to pick a date and let the control default for the initial date. I am using a CodeBook 6.1 modal form class with the MonthView used to select a date to be returnded by the form.

When I click on either of the MonthView buttons to move forward or back a month or when I click on a visible date falling outside the current month, I then get the error. I can click around within the current month, I just can't go outside the current month.

I think I noticed in one of the other refrences to this problem that the error does not happen when the control is on a form, only when it is on a form class.
Previous
Reply
Map
View

Click here to load this message in the networking platform