Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Handler Causes 0X80020005: Type Mismatch
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878994
Message ID:
00879067
Views:
20
Sergey,

Thank you very much.
I will try the resolution in the morning.


>It seems to be a bug in the Monthview control. The workaround is to trap the error in the ERROR event and ignore it.
>
>>We have this form that is used to pick dates.
>>The MsConCtl2.Monthview.2 oleclass is on this form.
>>The user can click on a date to select it or scroll backwards and forwards thru the months.
>>The control used to work OK as long as we did not deviate from the standard VFP error handler. In other words, no 'on error' statement in the application.
>>As soon as we placed code for our own error handler in the 'on error' method of the form, the scrolling back and forward causes an '0x80020005: type mismatch'. The 'method' of the error appears to be 'GetDayBoldEvent' although we are not using that property.
>>If we replace our own code with 'On error' the scrolling works OK again.
>>Is something happening in the OLE black box that I am not aware of?
>>TIA!
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform