Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MonthView and GetDayBold error -- again
Message
From
20/08/2001 01:47:17
 
 
To
19/08/2001 23:38:53
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:
00546038
Views:
18
>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform