>I have found several posts here and elsewhere about a problem with the MonthView control blowing up with a Type error in the GetDayBold event when changing months, but have not seen any resolution or acknowlegement that it is a but in the control of VFP. I am not using the event, it just blows up there. Specifically the error is:
>
>Error #: 1426
>Message: OLE error code 0x80020005: Type mismatch.
>Method: GetDayBold
>
>I am using VFP6 SP4 with MSCOMCT2.OCX version 6.0.88.4 on Win2k SP2
>
>Anybody got any new information on this?
>
>Thanks...
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.