Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Handler Causes 0X80020005: Type Mismatch
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00878994
Message ID:
00879362
Vues:
16
Did you apply the work around in the error event - or did you fix it with an alterrnate approach?

>Sergey,
>
>Just wanted to confirm that the problem IS fixed.
>Tks as always.
>
>>It seems to be a bug in the Monthview control. The workaround is to trap the error in the ERROR event and ignore it. See http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF8&threadm=tm83rcCYDHA.2148%40cpmsftngxa06.phx.gbl&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF8%26q%3DGetDayBold%2Bfoxpro%2Berror%26btnG%3DGoogle%2BSearch
>>
>>>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!
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform